public class SolXASession extends SolSession implements XASession
mConnectionConsumerSupport, mConnectionConsumerSupportRAAUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTEDConsumerDispatcherFactoryKey, TransactedSessionKey, XASessionKey| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commits all messages done in this transaction and releases any locks
currently held.
|
String |
getName() |
Session |
getSession()
Gets the session associated with this
XASession. |
boolean |
getTransacted()
Indicates whether the session is in transacted mode.
|
XAResource |
getXAResource()
Returns an XA resource to the caller.
|
void |
rollback()
Rolls back any messages done in this transaction and releases any locks
currently held.
|
void |
setParentSession(XASessionImpl parentSession)
This method is called by ConnectionConsumer to set the parent XASession who is also responsible
to clear the message list after receiving the XAEnd response.
|
void |
trackMessage(Message message)
This method is called by ConnectionConsumer during message delivery.
|
acknowledge, cancelSends, clearUnackedList, close, createBrowser, createBrowser, createBytesMessage, createConsumer, createConsumer, createConsumer, createDefaultSubscriber, createDurableSubscriber, createDurableSubscriber, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createQueue, createStreamMessage, createTemporaryQueue, createTemporaryTopic, createTextMessage, createTextMessage, createTopic, getAcknowledgeMode, getConnection, getConsumers, getMessageListener, getProducers, getProperties, getState, isTemporaryQueueUsed, isTemporaryTopicUsed, loadFromConnectionConsumer, loadMessages, onMessageCreate, onMessageSent, recover, remove, remove, remove, run, setMessageListener, start, stop, unsubscribeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, createBrowser, createBrowser, createBytesMessage, createConsumer, createConsumer, createConsumer, createDurableSubscriber, createDurableSubscriber, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createQueue, createStreamMessage, createTemporaryQueue, createTemporaryTopic, createTextMessage, createTextMessage, createTopic, getAcknowledgeMode, getMessageListener, recover, run, setMessageListener, unsubscribepublic Session getSession() throws JMSException
XASessionXASession.getSession in interface XASessionJMSException - if an internal error occurs.public XAResource getXAResource()
XASessiongetXAResource in interface XASessionpublic void commit()
throws JMSException
Sessioncommit in interface Sessioncommit in interface XASessioncommit in class SolSessionJMSException - if the JMS provider fails to commit the
transaction due to some internal error.TransactionRolledBackException - if the transaction
is rolled back due to some internal error
during commit.IllegalStateException - if the method is not called by a
transacted session.public boolean getTransacted()
throws JMSException
SessiongetTransacted in interface SessiongetTransacted in interface XASessiongetTransacted in class SolSessionJMSException - if the JMS provider fails to return the
transaction mode due to some internal error.public void rollback()
throws JMSException
Sessionrollback in interface Sessionrollback in interface XASessionrollback in class SolSessionJMSException - if the JMS provider fails to roll back the
transaction due to some internal error.IllegalStateException - if the method is not called by a
transacted session.public void trackMessage(Message message) throws JMSException
message - parameterJMSException - on errorpublic void setParentSession(XASessionImpl parentSession)
parentSession - parameterpublic String getName()
getName in interface SolSessionIFgetName in class SolSessionCopyright 2004-2020 Solace Corporation. All rights reserved.