Have you added an XAConnectionFactory to the ActiveMQ resource adapter
configuration?
META-INF/ra.xml should contain an entry like:
<connection-definition>
<managedconnectionfactory-class>org.apache.activemq.ra.ActiveMQManagedConnectionFactory</managedconnectionfactory-class>
<connectionfactory-interface>javax.jms.XAConnectionFactory</connectionfactory-interface>
<connectionfactory-impl-class>org.apache.activemq.ra.ActiveMQXAConnectionFactory</connectionfactory-impl-class>
<connection-interface>javax.jms.XAConnection</connection-interface>
<connection-impl-class>org.apache.activemq.ra.ManagedConnectionProxy</connection-impl-class>
</connection-definition>
I don't know why it is not included by default.
Then you need a <tx-connection-factory> entry in a activemq-jms-ds.xml (or
something similar) with
<jndi-name>activemq/XAConnectionFactory</jndi-name>
<xa-transaction/>
<track-connection-by-tx/>
<rar-name>activemq-rar.rar</rar-name>
<connection-definition>javax.jms.XAConnectionFactory</connection-definition>
that refers to that entry by its "connection-definition". ("rar-name" refers
to the JCA adapter so maybe you must use activemq-rar-5.0.0.rar (or better
rename the rar file))
That jndi-name must be used by your application for transacted sessions.
--
View this message in context:
http://www.nabble.com/JBoss-Integration---recovering-XAResource-tp20035573p20036449.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.