Class ActiveMQXAConnection
- java.lang.Object
-
- org.apache.activemq.artemis.jms.client.ActiveMQConnectionForContextImpl
-
- org.apache.activemq.artemis.jms.client.ActiveMQConnection
-
- org.apache.activemq.artemis.jms.client.ActiveMQXAConnection
-
- All Implemented Interfaces:
jakarta.jms.Connection,jakarta.jms.QueueConnection,jakarta.jms.TopicConnection,jakarta.jms.XAConnection,jakarta.jms.XAQueueConnection,jakarta.jms.XATopicConnection,AutoCloseable,ActiveMQConnectionForContext
public final class ActiveMQXAConnection extends ActiveMQConnection implements jakarta.jms.XATopicConnection, jakarta.jms.XAQueueConnection
ActiveMQ Artemis implementation of a JMS XAConnection.The flat implementation of
XATopicConnectionandXAQueueConnectionis per design, following common practices of JMS 1.1.
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.jms.client.ActiveMQConnection
CONNECTION_ID_PROPERTY_NAME, EXCEPTION_DISCONNECT, EXCEPTION_FAILOVER, TYPE_GENERIC_CONNECTION, TYPE_QUEUE_CONNECTION, TYPE_TOPIC_CONNECTION
-
Fields inherited from class org.apache.activemq.artemis.jms.client.ActiveMQConnectionForContextImpl
threadAwareContext
-
-
Constructor Summary
Constructors Constructor Description ActiveMQXAConnection(ConnectionFactoryOptions options, String username, String password, int connectionType, String clientID, int dupsOKBatchSize, int transactionBatchSize, boolean cacheDestinations, boolean enable1xNaming, ClientSessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.jms.XAQueueSessioncreateXAQueueSession()jakarta.jms.XASessioncreateXASession()jakarta.jms.XATopicSessioncreateXATopicSession()protected booleanisXA()-
Methods inherited from class org.apache.activemq.artemis.jms.client.ActiveMQConnection
addTemporaryQueue, authorize, authorize, checkAck, checkClosed, close, containsTemporaryQueue, createAMQSession, createConnectionConsumer, createConnectionConsumer, createConnectionConsumer, createDurableConnectionConsumer, createNonXAQueueSession, createNonXASession, createNonXATopicSession, createQueueSession, createSession, createSession, createSession, createSessionInternal, createSharedConnectionConsumer, createSharedDurableConnectionConsumer, createTopicSession, getClientID, getDeserializationBlackList, getDeserializationWhiteList, getExceptionListener, getFailoverListener, getInitialSession, getMetaData, getSessionFactory, getUID, hasNoLocal, isStarted, removeSession, removeTemporaryQueue, setClientID, setExceptionListener, setFailoverListener, setHasNoLocal, setReference, signalStopToAllSessions, start, stop
-
Methods inherited from class org.apache.activemq.artemis.jms.client.ActiveMQConnectionForContextImpl
closeFromContext, createContext, createXAContext, getThreadAwareContext, incrementRefCounter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jakarta.jms.Connection
close, createConnectionConsumer, createSession, createSession, createSharedConnectionConsumer, createSharedDurableConnectionConsumer, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
-
-
-
-
Constructor Detail
-
ActiveMQXAConnection
public ActiveMQXAConnection(ConnectionFactoryOptions options, String username, String password, int connectionType, String clientID, int dupsOKBatchSize, int transactionBatchSize, boolean cacheDestinations, boolean enable1xNaming, ClientSessionFactory sessionFactory)
-
-
Method Detail
-
createXASession
public jakarta.jms.XASession createXASession() throws jakarta.jms.JMSException- Specified by:
createXASessionin interfacejakarta.jms.XAConnection- Throws:
jakarta.jms.JMSException
-
createXAQueueSession
public jakarta.jms.XAQueueSession createXAQueueSession() throws jakarta.jms.JMSException- Specified by:
createXAQueueSessionin interfacejakarta.jms.XAQueueConnection- Throws:
jakarta.jms.JMSException
-
createXATopicSession
public jakarta.jms.XATopicSession createXATopicSession() throws jakarta.jms.JMSException- Specified by:
createXATopicSessionin interfacejakarta.jms.XATopicConnection- Throws:
jakarta.jms.JMSException
-
isXA
protected boolean isXA()
- Overrides:
isXAin classActiveMQConnection
-
-