02-23-2012 08:00 AM
02-23-2012 12:02 PM
02-24-2012 09:21 AM
If interested I can explain in more detail how I've implemented this.Please I am really interested in seeing your approach.
02-24-2012 12:21 PM
02-25-2012 12:41 PM
Just as an FYI, we have this ready in camunda fox with commercial support for webshere.
02-25-2012 12:43 PM
Hey Bardioc
I really appreciate your answer.
I was actually doing exactly that, extending the job executor and inside this one injecting a TaskExecutor.
This Task executor is configured trough spring and in development is just a simple ThreadPoolTaskExecutor but in
WAS is a WorkManagerTaskExecutor that will use the Threadpoll JNDI name to access it.If interested I can explain in more detail how I've implemented this.Please I am really interested in seeing your approach.
Thanks again.
02-25-2012 04:17 PM
02-27-2012 10:01 AM
I'll try to get those files and make them available as attachment to a note and PM you!
02-27-2012 01:26 PM
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="transactionManager" class="org.springframework.transaction.jta.WebSphereUowTransactionManager" />
<bean id="processEngineConfiguration" class="org.activiti.websphere.WebSphereEngineConfiguration">
<property name="transactionManager" ref="transactionManager" />
<property name="jobExecutorWorkManagerJndiName" value="java:comp/env/wm/default" />
</bean>
</beans>
It donates the JNDI name of the WorkManager to be used. It is optional, and if not specified, the given default value is used.
mvn install:install-file -Dfile=com.ibm.ws.prereq.commonj-twm.jar -DgroupId=com.ibm.ws.prereq -DartifactId=commonj-twm -Dversion=1.1 -Dpackaging=jar
The implementation uses an ExecutionService for WorkManagers. The idea came to me while I saw that the default JobExecutor uses the ThreadPoolExecutor.02-28-2012 07:11 AM
Hello again,
attached you find a maven project [attachment=1]activiti-websphere.zip[/attachment] that contains the support for WebSphere Application Server. It implements a custom Activiti Configuration based on the Spring Configuration object. The use of Spring here is important, as WebSphere contains a specific Transaction Manager support by using so called Units-of-Work. Spring provides support for this. The attached xml configuration [attachment=0]activiti.cfg.xml.zip[/attachment] shows how to use it.
Make sure you have included the dependency for activiti-spring as well, as it is mandatory for this. The only additional configuration parameter for WebSphere is the workManager JNDI-Name.It donates the JNDI name of the WorkManager to be used. It is optional, and if not specified, the given default value is used.
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="transactionManager" class="org.springframework.transaction.jta.WebSphereUowTransactionManager" />
<bean id="processEngineConfiguration" class="org.activiti.websphere.WebSphereEngineConfiguration">
<property name="transactionManager" ref="transactionManager" />
<property name="jobExecutorWorkManagerJndiName" value="java:comp/env/wm/default" />
</bean>
</beans>
For the maven project to compile successfully, you need to provide an IBM specific reference to the com.ibm.ws.prereq.commonj-twm.jar-File, which contains the API code for the WorkManagers. You find this file in your WebSphere application servers 'plugin' directory and need to install it into your local repository:The implementation uses an ExecutionService for WorkManagers. The idea came to me while I saw that the default JobExecutor uses the ThreadPoolExecutor.
mvn install:install-file -Dfile=com.ibm.ws.prereq.commonj-twm.jar -DgroupId=com.ibm.ws.prereq -DartifactId=commonj-twm -Dversion=1.1 -Dpackaging=jar
Attention: This module will only work for Activiti 5.9 or above, as the modifications introduced by JIRA ACT-34 are necessary.
The code is free of use. I would like to get a note if you find a mistake, error or something that could be done better.
Best regards,
Heiko
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.