-
Jan 25th, 2008, 09:32 AM
#1
two phase commit between JMS and Hibernate
Hi guys,
I am trying to configure spring with JMS and Hibernate and I want a two phase commit. I am using ActiveMQ and as database IBM DB2 with XA DataSource. Spring is now complaining about class cast exception between IBM XA DataSource and javax.sql.DataSource. I am using also Spring JtaTransactionManager as a proxy to Jencks-Geronimo Transaction manager.
Is it possible to connect these things together using spring and have wrapped a method within such kind of transaction? Do you have an example somewhere around?
Thanks in advance.
-
Feb 10th, 2008, 10:33 PM
#2
Yes, it is possible of course. With your setup (I have already worked with exactly the same) you need a ManagedConnectionFactory similar to what's shown on Jencks website. Search also these forums, there are bunch of posts on this topic from my side like this one.
Joerg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules