public class XATopicConnection extends TopicConnection implements XATopicConnection
javax.jms.XATopicConnection
interface.Connection.AtomicCounter, Connection.Closer
Modifier and Type | Field and Description |
---|---|
private XAResourceMngr |
rm
Resource manager instance.
|
JMXBeanBaseName, logger, messageConsumers
Constructor and Description |
---|
XATopicConnection()
Creates an
XATopicConnection instance. |
Modifier and Type | Method and Description |
---|---|
Session |
createSession(boolean transacted,
int acknowledgeMode)
Method inherited from interface
XAConnection . |
TopicSession |
createTopicSession(boolean transacted,
int acknowledgeMode)
API method.
|
XASession |
createXASession()
Method inherited from interface
XAConnection . |
XATopicSession |
createXATopicSession()
API method.
|
XAResourceMngr |
getXAResourceMngr()
return XAResourceMngr of this connection.
|
createConnectionConsumer, createDurableConnectionConsumer
addSession, checkCLMessageProducer, checkClosed, checkCLSession, checkConsumers, checkThread, cleanup, close, closeConnectionConsumer, closeMessageConsumer, closeSession, createConnectionConsumer, createSession, createSession, createSharedConnectionConsumer, createSharedDurableConnectionConsumer, doClose, equals, getAsyncSend, getClientID, getCompressedMinSize, getCompressionLevel, getExceptionListener, getImplicitAck, getInInterceptors, getJMXBeanName, getMetaData, getOutInterceptors, getOutLocalAddress, getOutLocalPort, 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
createConnectionConsumer, createDurableConnectionConsumer
close, createConnectionConsumer, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
private XAResourceMngr rm
public XATopicConnection()
XATopicConnection
instance.public TopicSession createTopicSession(boolean transacted, int acknowledgeMode) throws JMSException
createTopicSession
in interface TopicConnection
createTopicSession
in interface XATopicConnection
createTopicSession
in class TopicConnection
transacted
- indicates whether the session is transacted.acknowledgeMode
- indicates whether the consumer or the client will acknowledge
any messages it receives; ignored if the session is transacted.
Legal values are Session.AUTO_ACKNOWLEDGE, Session.CLIENT_ACKNOWLEDGE,
and Session.DUPS_OK_ACKNOWLEDGE.IllegalStateException
- If the connection is closed.JMSException
- In case of an invalid acknowledge mode.public XATopicSession createXATopicSession() throws JMSException
createXATopicSession
in interface XATopicConnection
IllegalStateException
- If the connection is closed.JMSException
public Session createSession(boolean transacted, int acknowledgeMode) throws JMSException
XAConnection
.createSession
in interface Connection
createSession
in interface XAConnection
createSession
in class Connection
transacted
- indicates whether the session is transacted.acknowledgeMode
- indicates whether the consumer or the client will acknowledge any messages
it receives; ignored if the session is transacted. Legal values are
Session.AUTO_ACKNOWLEDGE, Session.CLIENT_ACKNOWLEDGE, and Session.DUPS_OK_ACKNOWLEDGE.
Additionnaly Joram defines INDIVIDUAL_ACKNOWLEDGE: With this acknowledgment mode,
the client acknowledges a consumed message by calling the message's acknowledge
method. Contrary to CLIENT_ACKNOWLEDGE mode this mode allows to acknowledge only
the specified message.IllegalStateException
- If the connection is closed.JMSException
- In case of an invalid acknowledge mode.public XASession createXASession() throws JMSException
XAConnection
.createXASession
in interface XAConnection
IllegalStateException
- If the connection is closed.JMSException
public XAResourceMngr getXAResourceMngr()
Copyright © 2016 ScalAgent D.T.. All Rights Reserved.