Also, You want to make sure your application context create an individual jbpmContext and not a singleton. So the new application context would be this:
| <beans> | | <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> | <property name="dataSource"> | <ref bean="dataSource" /> | </property> | <property name="mappingJarLocations"> | <list> | <value>classpath:jbpm-3.1.jar</value> | </list> | </property> | ... | </bean> | | <bean id="jbpmObjectFactory" | class="org.donorschoose.workflow.JbpmSpringObjectFactory"> | </bean> | | <bean id="dbService" class="org.donorschoose.workflow.SpringDbPersistenceServiceFactory"> | <property name="sessionFactory"> | <ref local="sessionFactory" /> | </property> | </bean> | | <bean id="jbpmConfiguration" | class="org.jbpm.JbpmConfiguration"> | <constructor-arg index="0" ref="jbpmObjectFactory"/> | </bean> | | <bean id="services" class="org.jbpm.svc.Services"> | <constructor-arg index="0"> | <map> | <entry key="persistence"> | <ref local="dbService"/> | </entry> | </map> | </constructor-arg> | </bean> | | <bean id="default.jbpm.context" class="org.jbpm.JbpmContext" singleton="false"> | <constructor-arg index="0" ref="services"/> | <constructor-arg index="1" ref="jbpmObjectFactory"/> | </bean> | | <bean id="resource.default.modules" class="java.lang.String"> | <constructor-arg value="org/jbpm/graph/def/jbpm.default.modules.properties"/> | </bean> | | <bean id="resource.action.types" class="java.lang.String"> | <constructor-arg value="org/jbpm/graph/action/action.types.xml"/> | </bean> | | <bean id="resource.node.types" class="java.lang.String"> | <constructor-arg value="org/jbpm/graph/node/node.types.xml"/> | </bean> | | <bean id="resource.varmapping" class="java.lang.String"> | <constructor-arg value="org/jbpm/context/exe/jbpm.varmapping.xml"/> | </bean> | | </beans> View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928870#3928870 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928870 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
