JPA
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4249703#4249703
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4249703
___
jboss-user mailing list
jboss-user@lists.jboss.org
I have this code:
MapString,Object variables = new HashMapString,Object();
| variables.put(busLine, busLine);
| executionService.startProcessInstanceByKey(helloWorld, variables);
and I have an org.jbpm.api.listener.EventListener with this code:
public void notify(EventListenerExecution
Removing the current=true attribute:
Caused by: org.hibernate.HibernateException: No CurrentSessionContext
configured!
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4248424#4248424
Reply to the post :
When using:
command-service
|retry-interceptor /
|environment-interceptor /
|spring-transaction-interceptor current=true /
| /command-service
Results in:
No existing transaction found for transaction marked with propagation
'mandatory'
View the original post :
To support the transaction need, I'm using:
bean id=transactionManager
class=org.springframework.orm.jpa.JpaTransactionManager
|p:entityManagerFactory-ref=entityManagerFactory /
| tx:annotation-driven transaction-manager=transactionManager /
and I've placed the @Transactional
My case is a little diferent. I'm using JPA (hibernate implementation) so I
would like to know how can I stop depending on jbpm.hibernate.cfg.xml.
I tried to expose my sessionFactory through this bean:
bean id=entityManagerFactory