Package org.objectweb.joram.client.jms
Class XAConnection
- java.lang.Object
-
- org.objectweb.joram.client.jms.Connection
-
- org.objectweb.joram.client.jms.XAConnection
-
- All Implemented Interfaces:
AutoCloseable,Connection,XAConnection,ConnectionMBean
public class XAConnection extends Connection implements XAConnection
Connection used within global transactions; an instance of this class acts as a resource manager.The XAConnection class extends the capability of Connection by providing an XASession. This class offers support to transactional environments. Client programs are strongly encouraged to use the transactional support available in their environment, rather than use these XA interfaces directly.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.objectweb.joram.client.jms.Connection
Connection.AtomicCounter, Connection.Closer
-
-
Field Summary
Fields Modifier and Type Field Description private XAResourceMngrrmResource manager instance.-
Fields inherited from class org.objectweb.joram.client.jms.Connection
JMXBeanBaseName, logger, MESSAGE_ID_PREFIX_PROPERTY, messageConsumers, tracker
-
-
Constructor Summary
Constructors Constructor Description XAConnection()Creates aXAConnectioninstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XASessioncreateXASession()Creates a XA session.XAResourceMngrgetXAResourceMngr()return XAResourceMngr of this connection.-
Methods inherited from class org.objectweb.joram.client.jms.Connection
addSession, checkCLMessageProducer, checkClosed, checkCLSession, checkConsumers, checkThread, cleanup, close, closeConnectionConsumer, closeMessageConsumer, closeSession, createConnectionConsumer, createDurableConnectionConsumer, createSession, createSession, createSession, createSharedConnectionConsumer, createSharedDurableConnectionConsumer, doClose, equals, getAsyncSend, getClientID, getCompressedMinSize, getCompressionLevel, getExceptionListener, getImplicitAck, getInInterceptors, getJMXBeanName, getMetaData, getOutInterceptors, getOutLocalAddress, getOutLocalPort, getProxyId, getQueueMessageReadMax, getRequestMultiplexer, getTopicAckBufferMax, getTopicActivationThreshold, getTopicPassivationThreshold, getTxPendingTimer, hashCode, isOpenMessageConsumer, isStopped, lockClientId, nextMessageId, nextSessionId, nextSubName, open, openMessageConsumer, registerMBean, setClientID, setExceptionListener, setJMXBeanBaseName, setProviderClientID, start, stop, syncRequest, toString, unregisterMBean
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.jms.Connection
close, createConnectionConsumer, createDurableConnectionConsumer, createSession, createSession, createSharedConnectionConsumer, createSharedDurableConnectionConsumer, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
-
Methods inherited from interface javax.jms.XAConnection
createSession
-
-
-
-
Field Detail
-
rm
private XAResourceMngr rm
Resource manager instance.
-
-
Method Detail
-
createXASession
public XASession createXASession() throws JMSException
Creates a XA session.- Specified by:
createXASessionin interfaceXAConnection- Throws:
IllegalStateException- If the connection is closed.JMSException
-
getXAResourceMngr
public XAResourceMngr getXAResourceMngr()
return XAResourceMngr of this connection. see connector
-
-