the relevant piece of configuration is the transaction support attribute of the ra.xml (think it defaults to XA) and the way the RAR is configured in JBOSS. JBOSS needs to know that the activemq RAR, which supports the Connector specification XA contracts, should be queered for its XAResource. In other words, tell JBOSS you want the RAR involved in XA and the connector contracts will take care of the rest.
2009/8/31 Neo Wang <wangdong...@hotmail.com> > > Additional information: > I find the ActiveMQ provides the class of > "org.apache.activemq.ActiveMQXAConnectionFactory" to support XA, but for > me, > because I must invoke the JMS in application server JTA context, so I need > to use the RA jars provided by ActiveMQ, but for this solution, I find it > only can't provide the XA interface, it only has the class of > "org.apache.activemq.ra.ActiveMQConnectionFactory", no XA related class > existed. So I am confused how to get the XA resources in RA. Hope someone > can help me. > > > > > Neo Wang wrote: > > > > Environment: ActiveMQ 5.2, JBoss 5.1GA, JDK 5 > > > > I have configured the integration of JBoss and ActiveMQ(The embedded > > broker), in my test, a db update and jms message sending will be acted in > > one JTA transaction, I found the JMS message was still sent to ActiveMQ > > even the DB update is failed, so the XA transaction doesn't work. How to > > configure ActiveMQ to support XA in a JTA transaction? Thanks a lot. > > > > -- > View this message in context: > http://www.nabble.com/How-to-configure-ActiveMQ-to-support-XA-transaction--tp25220910p25221554.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > -- http://blog.garytully.com Open Source Integration http://fusesource.com