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
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103239#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...