This content has been marked as final.
Show 2 replies
-
1. Re: Did any one use springmodules to integrate jbpm with spr
heinerniehues Nov 8, 2007 3:08 PM (in response to bluesnails)I dont know exactly what you mean with springmodules.
I am using the jbpm with the Springframework, Tomcat and JSP.
Why the session get closed when you close the JbpmContext.
Post more code of you Spring implementation enviroment ? -
2. Re: Did any one use springmodules to integrate jbpm with spr
olivier.ch Nov 9, 2007 8:34 AM (in response to bluesnails)Your Hibernate session is closed ... it is a Spring configuration pb, not a JBPM problem ...
In your spring_applicationcontext, you need to declare a Transactionnal service. The transactionnal service is there to do the hibernate proxy and give transactions when needed.
Your object (for exemple facadeService here) where your code is written on use the transactionnal Service to get Hibernate Transaction
Then every methode written in your object will use a Hibernate transaction and then the hibernate session ....<bean id="transactionalService" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean" abstract="true"> <property name="transactionManager"> <ref bean="transactionManager" /> </property> <property name="transactionAttributes"> <props> <prop key="*">PROPAGATION_REQUIRED</prop> </props> </property> </bean> <bean id="facadeService" parent="transactionalService"> <property name="target"> <bean class="ocd.common.workflow.facade.FacadeOCD"> <property name="jbpmConfiguration"> <ref bean="jbpmConfiguration" /> </property> </bean> </property> </bean>
Olivier