Last thing to understand was why these logs when in tomee: ------------------------------------------- 13:50:13,489 INFO msgListenersTaskExecutor-1 com.test.MyListener:921 - Successfully refreshed JMS Connection 13:50:19,495 WARN msgListenersTaskExecutor-1 com.test.MyListener:871 - Setup of JMS message listener invoker failed for destination 'queue://MY_INCOMING_QUEUE' - trying to recover. Cause: Local JMS transaction failed to commit; nested exception is javax.j ms.IllegalStateException: Not a transacted session 13:50:19,496 INFO msgListenersTaskExecutor-1 com.test.MyListener:921 - Successfully refreshed JMS Connection 13:50:25,506 WARN msgListenersTaskExecutor-1 com.test.MyListener:871 - Setup of JMS message listener invoker failed for destination 'queue://MY_INCOMING_QUEUE' - trying to recover. Cause: Local JMS transaction failed to commit; nested exception is javax.j ms.IllegalStateException: Not a transacted session 13:50:25,506 INFO msgListenersTaskExecutor-1 com.test.MyListener:921 - Successfully refreshed JMS Connection 13:50:31,512 WARN msgListenersTaskExecutor-1 com.test.MyListener:871 - Setup of JMS message listener invoker failed for destination 'queue://MY_INCOMING_QUEUE' - trying to recover. Cause: Local JMS transaction failed to commit; nested exception is javax.j ms.IllegalStateException: Not a transacted session ------------------------------------------- and why the failing test case.
And the reason was that in my Spring Message listener I had both: <property name="sessionTransacted" value="true" /> <property name="transactionManager" ref="transactionManager" /> while sessionTransacted is not needed when a transactionManager is injected. THANKS A LOT FOR HELPING ME!! :) -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Tomee-MySql-ActiveMQ-XA-Distributed-Transactions-tp4676680p4676753.html Sent from the TomEE Users mailing list archive at Nabble.com.
