Class ActiveMQXAResourceRecovery
java.lang.Object
org.apache.activemq.artemis.service.extensions.xa.recovery.ActiveMQXAResourceRecovery
A 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 -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ActiveMQXAResourceRecovery
public ActiveMQXAResourceRecovery()
-
-
Method Details
-
initialise
-
hasMoreResources
public boolean hasMoreResources() -
getXAResource
-
getXAResources
-