2009/8/31 Neo Wang <wangdong...@hotmail.com>

>
> Thanks a lot for your so quick response, but I still have 2 questions:
> 1. the relevant piece of configuration is the transaction support attribute
> of
> the ra.xml (think it defaults to XA)
>    I have set the
> "<transaction-support>XATransaction</transaction-support>"
> in ra.xml, so is it OK?
>
yes.

>
> 2. tell JBOSS you want the RAR involved in XA and the connector
> contracts will take care of the rest.
>    I am confused to it, what configuration should be done and in which
> configuration file?
>
> see the jboss doc
> http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch7.chapt.html#ch7.genericjca.sect
>
and the activemq doc:
http://activemq.apache.org/outbound-communication.html tx-connection-factory
example.

>
>
>
> Gary Tully wrote:
> >
> > 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
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-configure-ActiveMQ-to-support-XA-transaction--tp25220910p25221786.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 
http://blog.garytully.com

Open Source Integration
http://fusesource.com

Reply via email to