public class GSXASessionImpl extends GSSessionImpl implements javax.jms.XASession
javax.jms.XASession
interface.Modifier and Type | Field and Description |
---|---|
protected XAResourceJMSImpl |
xaResource
The XAResource of the session.
|
_tx, m_browsers, m_closed, m_closing, m_consumers, m_isQueue, m_producers, m_stopped, sentMessages, txLeaseTime, unackedMessages
Constructor and Description |
---|
GSXASessionImpl(GSXAConnectionImpl conn)
Creates an instance of GSXASessionImpl.
|
Modifier and Type | Method and Description |
---|---|
void |
commit()
Commits all messages done in this transaction and releases any locks currently held.
|
javax.jms.Session |
getSession() |
XAResource |
getXAResource() |
void |
rollback() |
addBrowser, addConsumer, addProducer, close, createBrowser, createBrowser, createBytesMessage, createBytesMessage, createConsumer, createConsumer, createConsumer, createDurableSubscriber, createDurableSubscriber, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createPublisher, createQueue, createReceiver, createReceiver, createSender, createStreamMessage, createSubscriber, createSubscriber, createTemporaryQueue, createTemporaryTopic, createTextMessage, createTextMessage, createTopic, ensureTX, getAcknowledgeMode, getConn, getConsumersC, getJMSProviderName, getMessageListener, getMessagesC, getNumOfConsumedMsg, getNumOfProducedMsg, getProducersC, getRandomInt, getSessionID, getTransacted, getTransaction, isClosed, recover, removeBrower, removeConsumer, removeProducer, run, setConsumersC, setMessageListener, setMessagesC, setProducersC, setSessionID, toString, unsubscribe
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, 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, unsubscribe
protected XAResourceJMSImpl xaResource
public GSXASessionImpl(GSXAConnectionImpl conn) throws javax.jms.JMSException
conn
- the connection of the session.javax.jms.JMSException
- if failed to create the session.public javax.jms.Session getSession() throws javax.jms.JMSException
getSession
in interface javax.jms.XASession
javax.jms.JMSException
XASession.getSession()
public XAResource getXAResource()
getXAResource
in interface javax.jms.XASession
XASession.getXAResource()
public void rollback() throws javax.jms.JMSException
rollback
in interface javax.jms.Session
rollback
in interface javax.jms.XASession
rollback
in class GSSessionImpl
javax.jms.JMSException
XASession.rollback()
public void commit() throws javax.jms.JMSException
GSSessionImpl
commit
in interface javax.jms.Session
commit
in interface javax.jms.XASession
commit
in class GSSessionImpl
javax.jms.JMSException
XASession.commit()
Copyright © GigaSpaces.