Atomikos Forum

Atomis ActiveMQ Spring - no rollback on session

Hi All,

I'm in the midst of testing ActiveMQ and Spring together with Atomikos.

The process that I am trying to test is the following:

send message to activemq-queue --> receive by apache camel --> send to mysql by apache camel.

Both the JMS and JDBC components are completely configured with Atomikos.

However when I simulate a rollback (by using a wrong table name for the jdbc insert), atomikos tries to rollback receiving the message from ActiveMQ. THis is where I get into troubles.

The following warning is presented to me, does anybody have a clue why this is the case?:

[aultMessageListenerContainer-1] atomikos                      INFO  atomikos xa session proxy for resource fromQueue: Calling commit/rollback is not allowed on a managed session!


Daan van Santen Send private email
Wednesday, March 10, 2010

AFAIK, Spring tries to call commit/rollback on the session regardless whether it is a JTA/XA managed session (your case) or not. This is where the warning comes from, and it is Spring behavior.

Nevertheless, the end result should be fine. If you like then you can purchase 'application certification' from our website in order to get formal confirmation of correctness of your config.

Guy Pardon Send private email
Wednesday, March 10, 2010

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics