1 Reply Latest reply on Feb 28, 2005 5:52 AM by Ken Yim

    MDB + Hibernate + JMS Transaction Problem

    Ken Yim Newbie

      Hi,

      I've got a with MDB + Hibernate + JMS transaction.
      What I wanted to achieve is to use CMT MDB, which will rollback (put the message back to queue) if something wrong in the onMessage() method.
      Inside the onMessage() method, I have hibernate database update code and jms code to send message to another queue.

      But I found that the jms code doesn't involve in the XA transaction by default. I should use BMT and enlist the JMS into the transaction manager in order to make it work. However, the MDB can no longer put the message back to the queue for exceptions by using BMT...

      In summary, is there any solution for CMT MDB with hibernate and jms xa transaction?

      Thanks!!

      Ken