[jboss-user] [JBoss jBPM] - Re: Did any one use springmodules to integrate jbpm with spr

Olivier.ch do-not-reply at jboss.com
Fri Nov 9 08:34:54 EST 2007


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#4103239

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103239



More information about the jboss-user mailing list