Announcement Announcement Module
No announcement yet.
two phase commit between JMS and Hibernate Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #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.