Atomikos Forum |
|
I am evaluating transaction essentials for the second time and I still can't find a working example with JPA.
I've seen many tutorials and even a completely working example on the Spring forum with JDBC/JMS and Hibernate/JMS but I've found nothing regarding JPA. I am using 3.6.0 with hibernate 3.3.2 and Spring 2.5.6. I was able to create a working example by commenting out the <prop key="hibernate.transaction.factory_class">com.atomikos.icatch.jta.hibernate3.AtomikosJTATransactionFactory</prop> The problem is that flush does not work as suggested by 2010-02-09 16:38:26 SessionFactoryImpl [WARN] JTASessionContext being used with JDBCTransactionFactory; auto-flush will not operate correctly with getCurrentSession() I've seen workarounds to use JoinableCMTTransactionFactory instead but it won't fit a unit test or simple tomcat scenario. I am bit puzzled. Is there a working example with JPA/Hibernate + JMS that works truely outside the container?
3.2.3 specifically? Do you have a reference to a bug request for that issue?
3.2.3 is not an option to us unfortunately.
okay, let me try to summarize the situation here.
According to this issue, we should use 3.2.3 or prior. According to another issue (http://opensource.atlassian.com/projects/hibernate/browse/HHH-3358) that is fixed AFTER 3.2.3, I can't start atomikos with hibernate since it's looking up something in JNDI. There are examples of valid usage with Hibernate only + JMS or plain JDBC and Hibernate 3.2.3. Is there a way to make it work with JPA/Hibernate 3.3 and JMS without a JNDI access?
Hi,
There is a Hibernate issue that supposedly fixes this in later releases of Hibernate: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3358 I haven't seen this in their released code yet, though. Should you find it, please let me know. Best |