public class SolXAQueueSession extends SolQueueSession implements XAQueueSession
mConnectionConsumerSupport, mConnectionConsumerSupportRAAUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTEDConsumerDispatcherFactoryKey, TransactedSessionKey, XASessionKey| Constructor and Description |
|---|
SolXAQueueSession(SolConnectionIF connection,
JMSState state) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commits all messages done in this transaction and releases any locks
currently held.
|
String |
getName() |
QueueSession |
getQueueSession()
Gets the queue session associated with this
XAQueueSession. |
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.
|
createDurableSubscriber, createDurableSubscriber, createReceiver, createReceiver, createSender, createTemporaryTopic, createTopic, unsubscribeacknowledge, cancelSends, clearUnackedList, close, createBrowser, createBrowser, createBytesMessage, createConsumer, createConsumer, createConsumer, createDefaultSubscriber, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createQueue, createStreamMessage, createTemporaryQueue, createTextMessage, createTextMessage, getAcknowledgeMode, getConnection, getConsumers, getMessageListener, getProducers, getProperties, getState, isTemporaryQueueUsed, isTemporaryTopicUsed, loadFromConnectionConsumer, loadMessages, onMessageCreate, onMessageSent, recover, remove, remove, remove, run, setMessageListener, start, stopequals, 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, unsubscribecreateBrowser, createBrowser, createQueue, createTemporaryQueuepublic SolXAQueueSession(SolConnectionIF connection, JMSState state) throws JMSException
JMSExceptionpublic Session getSession() throws JMSException
XASessionXASession.getSession in interface XASessionJMSException - if an internal error occurs.public XAResource getXAResource()
XASessiongetXAResource in interface XASessionpublic void trackMessage(Message message) throws JMSException
message - parameterJMSException - on errorpublic void setParentSession(XASessionImpl parentSession)
parentSession - parameterpublic String getName()
getName in interface SolSessionIFgetName in class SolSessionpublic QueueSession getQueueSession() throws JMSException
XAQueueSessionXAQueueSession.getQueueSession in interface XAQueueSessionJMSException - if an internal error occurs.public 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.Copyright 2004-2019 Solace Corporation. All rights reserved.