public class ActiveMQXAResourceRecovery extends Object
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"/>
Modifier and Type | Class and Description |
---|---|
static class |
ActiveMQXAResourceRecovery.ConfigParser |
Constructor and Description |
---|
ActiveMQXAResourceRecovery() |
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
XAResource |
getXAResource() |
XAResource[] |
getXAResources() |
boolean |
hasMoreResources() |
boolean |
initialise(String config) |
public boolean initialise(String config)
public boolean hasMoreResources()
public XAResource getXAResource()
public XAResource[] getXAResources()
Copyright © 2017 JBoss by Red Hat. All rights reserved.