We are using Camel 2.0, ActiveMQ 5.3, Oracle, and the latest Atomikos for an
XA transaction manager with Spring 2.5.  Everything seems to work fine with
transaction commits and rollbacks.  However, Atomikos is constantly creating
transactions associated with routes that consume messages using the
ActiveMQComponent.  We have three queues, and five threads each consuming
from those queues.  We can see at load up that 15 transactions are created
and then committed.  Transactions are constantly created and committed even
when no messages are flowing through the queues.

If we comment out the routes that consume from queues, then the transactions
are not constantly created.

Also, you can see from the log snip that the transaction actions are
associated with a DefaultMessageListenerContainer.

Is there some way to prevent these transactions from constantly being
created when the queues are empty and no message processing is occurring?

Thanks.

2009-12-16 15:51:45,006 INFO  [atomikos] (DefaultMessageListenerContainer-1)
commit() done (by application) of transaction 127.0.0.1.tm0100900453
2009-12-16 15:51:45,010 INFO  [atomikos] (DefaultMessageListenerContainer-1)
createCompositeTransaction ( 300000 ): created new ROOT transaction with id
127.0.0.1.tm0101300453
2009-12-16 15:51:45,112 INFO  [atomikos] (DefaultMessageListenerContainer-1)
commit() done (by application) of transaction 127.0.0.1.tm0101000453
2009-12-16 15:51:45,116 INFO  [atomikos] (DefaultMessageListenerContainer-1)
createCompositeTransaction ( 300000 ): created new ROOT transaction with id
127.0.0.1.tm0101400453
2009-12-16 15:51:45,196 INFO  [atomikos] (DefaultMessageListenerContainer-1)
commit() done (by application) of transaction 127.0.0.1.tm0101100453
2009-12-16 15:51:45,201 INFO  [atomikos] (DefaultMessageListenerContainer-1)
createCompositeTransaction ( 300000 ): created new ROOT transaction with id
127.0.0.1.tm0101500453
2009-12-16 15:51:45,240 INFO  [atomikos] (DefaultMessageListenerContainer-1)
commit() done (by application) of transaction 127.0.0.1.tm0101200453
2009-12-16 15:51:45,244 INFO  [atomikos] (DefaultMessageListenerContainer-1)
createCompositeTransaction ( 300000 ): created new ROOT transaction with id
127.0.0.1.tm0101600453
-- 
View this message in context: 
http://old.nabble.com/Atomikos-Transactions-Created-In-Polling-Type-Fashion-By-ActiveMQ-Component-tp26818355p26818355.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to