activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexis Hassler <>
Subject JTA Transaction in a MessageListener
Date Wed, 04 May 2016 11:33:51 GMT

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

My problem is that the integration test (with artemis) passes, and I don't
understand why.

Can anyone explain me why it works, and how which test I can do to prove
that the solution is not relevant ?

Here is the PR :
And the MessageListener is here :

Thanks for your help,


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message