I have setup a transactional message listener in Spring, using ActiveMQ and Atomikos for JTA. ActiveMQ uses MySQL for persistency, no journaling is done. I noticed that the ID field in the activemq_msgs table increases for no apparent reason, without messages being posted on the queues. I enabled debug logging for ActiveMQ and noticed this:
DEBUG [apache.activemq.TransactionContext] Start: 172.16.203.64.tm0045200059172.16.203.64.tm455 DEBUG [apache.activemq.TransactionContext] Started XA transaction: XID:1096044365:3137322e31362e3230332e36342e746d30303435323030303539:3137322e31362e3230332e36342e746d343535 DEBUG [apache.activemq.TransactionContext] End: 172.16.203.64.tm0045200059172.16.203.64.tm455 DEBUG [apache.activemq.TransactionContext] Ended XA transaction: XID:1096044365:3137322e31362e3230332e36342e746d30303435323030303539:3137322e31362e3230332e36342e746d343535 DEBUG [apache.activemq.TransactionContext] Commit: 172.16.203.64.tm0045200059172.16.203.64.tm455 DEBUG [activemq.transaction.XATransaction] XA Transaction commit: XID:1096044365:3137322e31362e3230332e36342e746d30303435323030303539:3137322e31362e3230332e36342e746d343535 DEBUG [apache.activemq.TransactionContext] Start: 172.16.203.64.tm0045300059172.16.203.64.tm456 DEBUG [apache.activemq.TransactionContext] Started XA transaction: XID:1096044365:3137322e31362e3230332e36342e746d30303435333030303539:3137322e31362e3230332e36342e746d343536 DEBUG [apache.activemq.TransactionContext] End: 172.16.203.64.tm0045300059172.16.203.64.tm456 DEBUG [apache.activemq.TransactionContext] Ended XA transaction: XID:1096044365:3137322e31362e3230332e36342e746d30303435333030303539:3137322e31362e3230332e36342e746d343536 DEBUG [apache.activemq.TransactionContext] Commit: 172.16.203.64.tm0045300059172.16.203.64.tm456 DEBUG [activemq.transaction.XATransaction] XA Transaction commit: XID:1096044365:3137322e31362e3230332e36342e746d30303435333030303539:3137322e31362e3230332e36342e746d343536 DEBUG [apache.activemq.TransactionContext] Start: 172.16.203.64.tm0045400059172.16.203.64.tm457 DEBUG [apache.activemq.TransactionContext] Started XA transaction: XID:1096044365:3137322e31362e3230332e36342e746d30303435343030303539:3137322e31362e3230332e36342e746d343537 DEBUG [apache.activemq.TransactionContext] End: 172.16.203.64.tm0045400059172.16.203.64.tm457 DEBUG [apache.activemq.TransactionContext] Ended XA transaction: XID:1096044365:3137322e31362e3230332e36342e746d30303435343030303539:3137322e31362e3230332e36342e746d343537 DEBUG [apache.activemq.TransactionContext] Commit: 172.16.203.64.tm0045400059172.16.203.64.tm457 DEBUG [activemq.transaction.XATransaction] XA Transaction commit: XID:1096044365:3137322e31362e3230332e36342e746d30303435343030303539:3137322e31362e3230332e36342e746d343537 DEBUG [apache.activemq.TransactionContext] Start: 172.16.203.64.tm0045500059172.16.203.64.tm458 DEBUG [apache.activemq.TransactionContext] Started XA transaction: XID:1096044365:3137322e31362e3230332e36342e746d30303435353030303539:3137322e31362e3230332e36342e746d343538 DEBUG [apache.activemq.TransactionContext] End: 172.16.203.64.tm0045500059172.16.203.64.tm458 DEBUG [apache.activemq.TransactionContext] Ended XA transaction: XID:1096044365:3137322e31362e3230332e36342e746d30303435353030303539:3137322e31362e3230332e36342e746d343538 DEBUG [apache.activemq.TransactionContext] Commit: 172.16.203.64.tm0045500059172.16.203.64.tm458 DEBUG [activemq.transaction.XATransaction] XA Transaction commit: XID:1096044365:3137322e31362e3230332e36342e746d30303435353030303539:3137322e31362e3230332e36342e746d343538 And this keeps going on. Any idea what is causing this? Regards, Rik Gruwez -- View this message in context: http://www.nabble.com/Lots-of-XA-transactions-going-on-for-no-apparent-reason-tp22929377p22929377.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.