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
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 XAQueueSessioncreateXAQueueSession()Creates anXAQueueSessionobject.XASessioncreateXASession()Creates anXASessionobject.XATopicSessioncreateXATopicSession()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, 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
-
Methods inherited from interface jakarta.jms.QueueConnection
createConnectionConsumer
-
Methods inherited from interface jakarta.jms.TopicConnection
createConnectionConsumer, createDurableConnectionConsumer
-
Methods inherited from interface jakarta.jms.XAConnection
createSession
-
Methods inherited from interface jakarta.jms.XAQueueConnection
createQueueSession
-
Methods inherited from interface jakarta.jms.XATopicConnection
createTopicSession
-
-
-
-
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 XASession createXASession() throws JMSException
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
public XAQueueSession createXAQueueSession() throws JMSException
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
public XATopicSession createXATopicSession() throws JMSException
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
-
-