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?
sorry, wrong post....
and should be lookup JmsXA.