Class ActiveMQXAResourceWrapper

java.lang.Object
org.apache.activemq.artemis.service.extensions.xa.recovery.ActiveMQXAResourceWrapper
All Implemented Interfaces:
XAResource, SessionFailureListener, org.apache.activemq.artemis.core.remoting.FailureListener

public class ActiveMQXAResourceWrapper extends Object implements XAResource, SessionFailureListener
XAResourceWrapper.

Mainly from org.jboss.server.XAResourceWrapper from the JBoss AS server module

The reason why we don't use that class directly is that it assumes on failure of connection the RM_FAIL or RM_ERR is thrown, but in ActiveMQ Artemis we throw XA_RETRY since we want the recovery manager to be able to retry on failure without having to manually retry