-
1. Re: JBossCache with Hibernate Transaction
brian.stansberry Jul 20, 2006 8:37 PM (in response to aashishvora)JBoss Cache requires use of a JTA transaction manager; doesn't have to be JBoss', but must be JTA. Hibernate transactions are not JTA.
-
2. Re: JBossCache with Hibernate Transaction
aashishvora Jul 20, 2006 10:30 PM (in response to aashishvora)Thanks a lot for quick response.
-
3. Re: JBossCache with Hibernate Transaction
manik Jul 21, 2006 12:38 AM (in response to aashishvora)Make sure both JBoss Cache and Hibernate are configured to use the same TM and then use the Hibernate transaction interfaces to begin/commit/rollback your transactions.
Behind the scenes, both interfaces delegate transaction orchestration to the TM configured; just make sure they are both configured to use the same TM. -
4. Re: JBossCache with Hibernate Transaction
manik Jul 21, 2006 12:43 AM (in response to aashishvora) -
5. Re: JBossCache with Hibernate Transaction
brian.stansberry Jul 21, 2006 8:58 AM (in response to aashishvora)Yep, I know. I interpreted the question as meaning he didn't want to use JTATransactionFactory as the hibernate.transaction.manager_lookup_class, but rather wanted JDBCTransactionFactory. But as I reread it I see that's not what he said. Thanks for clarifying :)
-
6. Re: JBossCache with Hibernate Transaction
aashishvora Jul 21, 2006 9:18 AM (in response to aashishvora)Just one more question, will JBossCache work if I configure with JTA but the Transaction Management suports only one-phase and does not support 2 Phase(XA) protocols.
-
7. Re: JBossCache with Hibernate Transaction
aashishvora Jul 21, 2006 9:22 AM (in response to aashishvora)"bstansberry@jboss.com" wrote:
Yep, I know. I interpreted the question as meaning he didn't want to use JTATransactionFactory as the hibernate.transaction.manager_lookup_class, but rather wanted JDBCTransactionFactory. But as I reread it I see that's not what he said. Thanks for clarifying :)
Your understanding of my problem is correct. I wanted to use JDBCTransactionFactory as my transaction lookup class. And as I understood it, cannot be done with JBossCache. -
8. Re: JBossCache with Hibernate Transaction
aashishvora Jul 21, 2006 9:28 AM (in response to aashishvora)"aashishvora" wrote:
Just one more question, will JBossCache work if I configure with JTA but the Transaction Management suports only one-phase and does not support 2 Phase(XA) protocols.
Just to clarify further, I still have Hibernate participating in the same transaction with the help of non XA datasource, hence I have two transactional resource(Hibernate and JBossCache) and both are committing or rolling back together.
Thanks