Justin Kredible
Justin Kredible

Reputation: 8414

How to use standalone JBoss Transactions with Spring, Hibernate and JPA?

I have an app that is deployed on Tomcat but I need to use JTA because I am connecting to multiple data sources. I don't want to use JBoss AS but would like to use the JBoss transaction manager. I currently have my app configured to use Bitronix but my boss wants me to use something more popular. Sigh.

Does anyone know how to use the JBoss transaction manager with Spring and Hibernate but not use JBoss AS?

Upvotes: 0

Views: 3735

Answers (1)

Tomasz Nurkiewicz
Tomasz Nurkiewicz

Reputation: 340733

Have you seen this:

http://community.jboss.org/wiki/HowToUseJBossJTAStandaloneTransactionManager ?

If it's not already supported in Spring, writing your custom AbstractPlatformTransactionManager to wrap JBoss TM shouldn't be hard.

Upvotes: 2

Related Questions