-
1. Re: JBossTS integration with ActiveMQ and Hibernate
mmusgrov Jul 14, 2010 10:53 AM (in response to fered)You could start out with the following blog post: http://community.jboss.org/blogs/galder.zamarreno/2007/04/26/no-need-to-hacer-de-celestina-any-more
-
2. Re: JBossTS integration with ActiveMQ and Hibernate
fered Jul 15, 2010 12:27 AM (in response to mmusgrov)NOTE: In spite of the example working, transaction management is not working appropriately when it comes to both Hibernate and JBossCache participating of the same transaction. The reason is because at the time of writing this wiki, Hibernate did not allow to inject a JTA Transaction Manager which is not bound to JNDI. In the example, Hibernate creates a JDBC transaction and JBossCache a JTA transaction which are not linked together. To be able to make a Hibernate and JBossCache participant of the same JTA transaction in a standalone environment, customer code needs to be added to Hibernate to get around the JNDI/JTA coupling.
I think this is an old example. Is there a new one? and just Hibernate+JBoss transactions and no JBoss cache.
Thank you
-
3. Re: JBossTS integration with ActiveMQ and Hibernate
mmusgrov Jul 15, 2010 6:12 AM (in response to fered)fered fered wrote:
NOTE: In spite of the example working, transaction management is not working appropriately when it comes to both Hibernate and JBossCache participating of the same transaction. The reason is because at the time of writing this wiki, Hibernate did not allow to inject a JTA Transaction Manager which is not bound to JNDI. In the example, Hibernate creates a JDBC transaction and JBossCache a JTA transaction which are not linked together. To be able to make a Hibernate and JBossCache participant of the same JTA transaction in a standalone environment, customer code needs to be added to Hibernate to get around the JNDI/JTA coupling.
I think this is an old example. Is there a new one? and just Hibernate+JBoss transactions and no JBoss cache.
Thank you
I'm not aware of any example. Why don't you bind the transaction manager into JNDI manually. There are articles on developing JNDI applications on the Sun Developer Network - it is actually only a few lines of code.
-
4. Re: JBossTS integration with ActiveMQ and Hibernate
mmusgrov Jul 17, 2010 12:14 PM (in response to fered)I believe whitingjr has some examples that cover this scenario - perhaps he will respond.
-
5. Re: JBossTS integration with ActiveMQ and Hibernate
fered Jul 24, 2010 3:17 AM (in response to fered)I can't understand what's you'r mean.
I need distributed transactions between some nodes that use hibernate and activemq.
I think JBoss transactions can help me.