Results 1 to 2 of 2

Thread: two phase commit between JMS and Hibernate

  1. #1
    Join Date
    Jan 2008
    Posts
    1

    Default 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. #2
    Join Date
    Nov 2005
    Location
    Reutlingen, Germany
    Posts
    2,098

    Default

    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
    This post can contain insufficient information.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •