PDA

View Full Version : jBPM and JPA sharing the same JDBC connection



Petekol
Aug 9th, 2006, 03:54 AM
i have managed to configure Spring, jBPM, JPA(Hibernate) to use JTA transaction (JOTM) for their synchronisation. Is local transaction also possible? Can JPA(toplink for example) and jBPM(Hibernate) be configured to use same local transaction/JDBC connection???

Petekol
Aug 16th, 2006, 02:47 AM
if i configure JpaTransactionManager it binds JDBC connection to a thread through HibernateJpaDialect but how can i tell JbpmTemaplate (HibernateTemplate) to pick it up??? It looks only hibernate sessions for and can not use existing connection -(

Costin Leau
Aug 16th, 2006, 04:22 AM
I've replied on the matter to this thread: http://forum.springframework.org/showthread.php?t=28125.

Basically, you'll have to chose on ORM for the moment. I've raised an issue on the matter (http://opensource.atlassian.com/projects/spring/browse/SPR-2432) to keep track of it.
Btw, do JPA and Hibernate share any entities or not? what are the configurations?