Skip navigation links

Oracle® Streams Advanced Queuing Java API Reference
11g Release 2 (11.2)

E10768-01


oracle.jms
Class AQjmsXASession

java.lang.Object
  extended by oracle.jms.AQjmsObject
      extended by oracle.jms.AQjmsSession
          extended by oracle.jms.AQjmsXASession

All Implemented Interfaces:
java.lang.Runnable, QueueSession, Session, TopicSession, XAQueueSession, XASession, XATopicSession

public class AQjmsXASession
extends AQjmsSession
implements XASession, XAQueueSession, XATopicSession

Oracle class implementing javax.jms.XASession, javax.jms.XAQueueSession and javax.jms.XATopicSession


Field Summary

 

Fields inherited from interface javax.jms.Session
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTED

 

Fields inherited from interface javax.jms.Session
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTED

 

Fields inherited from interface javax.jms.Session
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTED

 

Method Summary
 void commit()
          Throws a TransactionInProgressException, since it should not be called for an XASession object.
 QueueSession getQueueSession()
          Gets the queue session associated with this XAQueueSession.
 Session getSession()
          Gets the session associated with this XASession.
 TopicSession getTopicSession()
          Gets the topic session associated with this XATopicSession.
 javax.transaction.xa.XAResource getXAResource()
          Returns an XA resource to the caller.
 void rollback()
          Throws a TransactionInProgressException, since it should not be called for an XASession object.

 

Methods inherited from class oracle.jms.AQjmsSession
alterAQAgent, bindAgent, close, createAdtMessage, createAdtMessage, createAQAgent, createAQAgent, createBrowser, createBrowser, createBrowser, createBrowser, createBrowser, createBrowser, createBrowser, createBrowser, createBrowser, createBrowser, createBrowser, createBrowser, createBrowser, createBrowser, createBytesMessage, createConsumer, createConsumer, createConsumer, createConsumer, createDurableSubscriber, createDurableSubscriber, createDurableSubscriber, createDurableSubscriber, createDurableSubscriber, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createORAMessage, createORAMessage, createProducer, createPublisher, createQueue, createQueue, createQueue, createQueueTable, createQueueTable, createReceiver, createReceiver, createReceiver, createReceiver, createRemoteSubscriber, createRemoteSubscriber, createRemoteSubscriber, createRemoteSubscriber, createSender, createStreamMessage, createSubscriber, createSubscriber, createTemporaryQueue, createTemporaryTopic, createTextMessage, createTextMessage, createTextMessage, createTopic, createTopic, createTopic, createTopicReceiver, createTopicReceiver, disableDBAccess, dropAQAgent, enableDBAccess, getAckMode, getAcknowledgeMode, getDBConnection, getJmsConnection, getMessageListener, getQueue, getQueueTable, getTopic, getTransacted, getTypeMap, grantSystemPrivilege, recover, restartConsumers, revokeSystemPrivilege, run, setMessageListener, unbindAgent, unsubscribe, unsubscribe, unsubscribe

 

Methods inherited from class oracle.jms.AQjmsObject
checkClosed, children, finalize, getID, getParent, isOpen, localClose, preClose

 

Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface javax.jms.XASession
getTransacted

 

Methods inherited from interface javax.jms.Session
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

 

Methods inherited from interface javax.jms.XASession
getTransacted

 

Methods inherited from interface javax.jms.Session
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

 

Methods inherited from interface javax.jms.XASession
getTransacted

 

Methods inherited from interface javax.jms.Session
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

 

Method Detail

getSession

public Session getSession()
                   throws JMSException
Gets the session associated with this XASession.
Specified by:
getSession in interface XASession
Returns:
the session object
Throws:
JMSException - if an internal error occurs.

getQueueSession

public QueueSession getQueueSession()
                             throws JMSException
Gets the queue session associated with this XAQueueSession.
Specified by:
getQueueSession in interface XAQueueSession
Returns:
the queue session object
Throws:
JMSException - if an internal error occurs.

getTopicSession

public TopicSession getTopicSession()
                             throws JMSException
Gets the topic session associated with this XATopicSession.
Specified by:
getTopicSession in interface XATopicSession
Returns:
the topic session object
Throws:
JMSException - if an internal error occurs.

commit

public void commit()
            throws JMSException
Throws a TransactionInProgressException, since it should not be called for an XASession object.
Specified by:
commit in interface Session
Specified by:
commit in interface XASession
Overrides:
commit in class AQjmsSession
Throws:
TransactionInProgressException - if the method is called on an XASession.
JMSException - if the transaction is not committed due to some error.

rollback

public void rollback()
              throws JMSException
Throws a TransactionInProgressException, since it should not be called for an XASession object.
Specified by:
rollback in interface Session
Specified by:
rollback in interface XASession
Overrides:
rollback in class AQjmsSession
Throws:
TransactionInProgressException - if the method is called on an XASession.
JMSException - if the transaction is not rolled back due to some error.

getXAResource

public javax.transaction.xa.XAResource getXAResource()
Returns an XA resource to the caller.
Specified by:
getXAResource in interface XASession
Returns:
an XA resource to the caller

Skip navigation links

Oracle® Streams Advanced Queuing Java API Reference
11g Release 2 (11.2)

E10768-01


Copyright © 2003, 2009, Oracle and/or its affiliates. All rights reserved.