Class ActiveMQXAResourceRecovery
- java.lang.Object
-
- org.apache.activemq.artemis.service.extensions.xa.recovery.ActiveMQXAResourceRecovery
-
public class ActiveMQXAResourceRecovery extends java.lang.ObjectA XAResourceRecovery instance that can be used to recover any JMS provider.In reality only recover, rollback and commit will be called but we still need to be implement all methods just in case.
To enable this add the following to the jbossts-properties file
<property name="com.arjuna.ats.jta.recovery.XAResourceRecovery.ACTIVEMQ1" value="org.apache.activemq.artemis.jms.server.recovery.ActiveMQXAResourceRecovery;org.apache.activemq.artemis.core.remoting.impl.invm.InVMConnectorFactory"/>you'll need something like this if the ActiveMQ Artemis Server is remote
<property name="com.arjuna.ats.jta.recovery.XAResourceRecovery.ACTIVEMQ2" value="org.apache.activemq.artemis.jms.server.recovery.ActiveMQXAResourceRecovery;org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory,guest,guest,host=localhost,port=61616"/>you'll need something like this if the ActiveMQ Artemis Server is remote and has failover configured
<property name="com.arjuna.ats.jta.recovery.XAResourceRecovery.ACTIVEMQ2" value="org.apache.activemq.artemis.jms.server.recovery.ActiveMQXAResourceRecovery;org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory,guest,guest,host=localhost,port=61616;org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory,guest,guest,host=localhost2,port=61617"/>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classActiveMQXAResourceRecovery.ConfigParser
-
Constructor Summary
Constructors Constructor Description ActiveMQXAResourceRecovery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.transaction.xa.XAResourcegetXAResource()javax.transaction.xa.XAResource[]getXAResources()booleanhasMoreResources()booleaninitialise(java.lang.String config)
-