Re: JTA Transaction in a MessageListener

2016-05-07 Thread Alexis Hassler
Thanks for your answer Martyn. Really useful. Alexis http://www.jtips.info, http://blog.alexis-hassler.com 2016-05-05 16:22 GMT+02:00 Martyn Taylor : > Hi Alexis, > > The onMessage() method (when invoked outside of an container) would be > called outside the boundaries

Re: JTA Transaction in a MessageListener

2016-05-05 Thread Martyn Taylor
Hi Alexis, The onMessage() method (when invoked outside of an container) would be called outside the boundaries of a transaction. I see you are using XASession in the test you provided. When onMessage() is called, and a message consumed, with an XASession, it would be done so with an ack mode eq

JTA Transaction in a MessageListener

2016-05-04 Thread Alexis Hassler
Hi, Lately, I've sent a PR to the Narayana project in order to support JTA transactions in JMS MessageListener. In this PR, I started a JTA transaction in the onMessage method. The PR will be rejected because starting the transaction in the onMessage is too late : the message has already been deq