Atomikos Forum |
|
While it's not real necessary to use a transaction for browsing a queue it should still work :-)
The source of the problem: AtomikosJmsXaSessionProxy doesn't proxy the createBrowser method. Adding a AtomikosJmsQueueBrowserProxy and using it in the AtomikosJmsXaSessionProxy fixed the problem. Part of the original stack trace: [RequestHandlerThread[#0]] [] INFO atomikos xa session proxy for resource amqlocal: calling createBrowser on JMS driver session... | TX= [RequestHandlerThread[#0]] [] INFO atomikos xa session proxy for resource amqlocal: calling getTransacted on JMS driver session... | TX= transacted: true javax.jms.JMSException: Session's XAResource has not been enlisted in a distributed transaction. at org.apache.activemq.ActiveMQXASession.doStartTransaction(ActiveMQXASession.java:109) |