Yes So trying to sumarrize the 3 mails ;):
- spring config, thanks to its wrapper, overrided some behavior where AMQ strictly respects createSession parameters - transacted one. - by default tomee uses xa activemq connections but AMQ needs a transaction manager integration - ie the connection factory needs a resource adapter - the error you have is just the usage of a XA component in a transaction without the transacted parameter set to true Bitronix seems to enforce some behavior wrapping AMQ - probably allowing to use not xa impl but AMQ already impl xa so no need of it. Le 9 nov. 2015 05:46, "iannuz" <[email protected]> a écrit : > 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. >
