Atomikos Forum

Browse Queue in JTA transcation fails for ActiveMQ

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)
Peter Schuebl Send private email
Thursday, October 08, 2009
 
 
Hi,

Thanks! Would you like to contribute your fix's code?

Cheers
Guy
Guy Pardon Send private email
Tuesday, October 13, 2009
 
 

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

Other recent topics Other recent topics