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:
Connection,QueueConnection,TopicConnection,XAConnection,XAQueueConnection,XATopicConnection,AutoCloseable,ActiveMQConnectionForContext
public final class ActiveMQXAConnection
extends ActiveMQConnection
implements XATopicConnection, XAQueueConnection
ActiveMQ Artemis implementation of a JMS XAConnection.
The flat implementation of XATopicConnection and XAQueueConnection is 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_CONNECTIONFields inherited from class org.apache.activemq.artemis.jms.client.ActiveMQConnectionForContextImpl
threadAwareContext -
Constructor Summary
ConstructorsConstructorDescriptionActiveMQXAConnection(ConnectionFactoryOptions options, String username, String password, int connectionType, String clientID, int dupsOKBatchSize, int transactionBatchSize, boolean cacheDestinations, boolean enable1xNaming, ClientSessionFactory sessionFactory) -
Method Summary
Modifier and TypeMethodDescriptionCreates anXAQueueSessionobject.Creates anXASessionobject.Creates anXATopicSessionobject.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, getDeserializationAllowList, getDeserializationBlackList, getDeserializationDenyList, getDeserializationWhiteList, getExceptionListener, getFailoverListener, getInitialSession, getMetaData, getSessionFactory, getUID, hasNoLocal, isStarted, removeSession, removeTemporaryQueue, setClientID, setExceptionListener, setFailoverListener, setHasNoLocal, setReference, signalStopToAllSessions, start, stopMethods inherited from class org.apache.activemq.artemis.jms.client.ActiveMQConnectionForContextImpl
closeFromContext, createContext, createXAContext, getThreadAwareContext, incrementRefCounterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.jms.Connection
close, createConnectionConsumer, createSession, createSession, createSharedConnectionConsumer, createSharedDurableConnectionConsumer, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stopMethods inherited from interface jakarta.jms.QueueConnection
createConnectionConsumerMethods inherited from interface jakarta.jms.TopicConnection
createConnectionConsumer, createDurableConnectionConsumerMethods inherited from interface jakarta.jms.XAConnection
createSessionMethods inherited from interface jakarta.jms.XAQueueConnection
createQueueSessionMethods inherited from interface jakarta.jms.XATopicConnection
createTopicSession
-
Constructor Details
-
ActiveMQXAConnection
public ActiveMQXAConnection(ConnectionFactoryOptions options, String username, String password, int connectionType, String clientID, int dupsOKBatchSize, int transactionBatchSize, boolean cacheDestinations, boolean enable1xNaming, ClientSessionFactory sessionFactory)
-
-
Method Details
-
createXASession
Description copied from interface:XAConnectionCreates anXASessionobject.- Specified by:
createXASessionin interfaceXAConnection- Returns:
- a newly created
XASession - Throws:
JMSException- if theXAConnectionobject fails to create anXASessiondue to some internal error.
-
createXAQueueSession
Description copied from interface:XAQueueConnectionCreates anXAQueueSessionobject.- Specified by:
createXAQueueSessionin interfaceXAQueueConnection- Returns:
- a newly created
XAQueueSession - Throws:
JMSException- if theXAQueueConnectionobject fails to create anXAQueueSessiondue to some internal error.
-
createXATopicSession
Description copied from interface:XATopicConnectionCreates anXATopicSessionobject.- Specified by:
createXATopicSessionin interfaceXATopicConnection- Returns:
- a newly created
XATopicSession - Throws:
JMSException- if theXATopicConnectionobject fails to create anXATopicSessiondue to some internal error.
-
isXA
protected boolean isXA()- Overrides:
isXAin classActiveMQConnection
-