Package org.objectweb.joram.client.jms
Class XATopicSession
- java.lang.Object
-
- org.objectweb.joram.client.jms.XASession
-
- org.objectweb.joram.client.jms.XATopicSession
-
- All Implemented Interfaces:
AutoCloseable,Runnable,Session,XASession,XATopicSession
public class XATopicSession extends XASession implements XATopicSession
Implements thejavax.jms.XATopicSessioninterface.
-
-
Field Summary
-
Fields inherited from interface javax.jms.Session
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTED
-
-
Constructor Summary
Constructors Constructor Description XATopicSession(XATopicConnection cnx, TopicSession ts, XAResourceMngr rm)Constructs anXATopicSessioninstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TopicSubscribercreateSubscriber(Topic topic)Delegates the call to the wrapped JMS session.TopicSubscribercreateSubscriber(Topic topic, String selector, boolean noLocal)Delegates the call to the wrapped JMS session.TopicSessiongetTopicSession()API method.StringtoString()Returns a String image of this session.-
Methods inherited from class org.objectweb.joram.client.jms.XASession
close, commit, createBrowser, createBrowser, createBytesMessage, createConsumer, createConsumer, createConsumer, createDurableConsumer, createDurableConsumer, createDurableSubscriber, createDurableSubscriber, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createQueue, createSharedConsumer, createSharedConsumer, createSharedDurableConsumer, createSharedDurableConsumer, createStreamMessage, createTemporaryQueue, createTemporaryTopic, createTextMessage, createTextMessage, createTopic, getAcknowledgeMode, getDelegateSession, getMessageListener, getSession, getTransacted, getXAResource, recover, rollback, run, setMessageListener, unsubscribe
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.jms.Session
close, createBrowser, createBrowser, createBytesMessage, createConsumer, createConsumer, createConsumer, createDurableConsumer, createDurableConsumer, createDurableSubscriber, createDurableSubscriber, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createQueue, createSharedConsumer, createSharedConsumer, createSharedDurableConsumer, createSharedDurableConsumer, createStreamMessage, createTemporaryQueue, createTemporaryTopic, createTextMessage, createTextMessage, createTopic, getAcknowledgeMode, getMessageListener, recover, run, setMessageListener, unsubscribe
-
Methods inherited from interface javax.jms.XASession
commit, getSession, getTransacted, getXAResource, rollback
-
-
-
-
Constructor Detail
-
XATopicSession
XATopicSession(XATopicConnection cnx, TopicSession ts, XAResourceMngr rm) throws JMSException
Constructs anXATopicSessioninstance.- Parameters:
cnx- The connection the session belongs to.rm- The resource manager.- Throws:
JMSException- Actually never thrown.
-
-
Method Detail
-
toString
public String toString()
Returns a String image of this session.
-
getTopicSession
public TopicSession getTopicSession() throws JMSException
API method. Gets the topic session associated with this XATopicSession.- Specified by:
getTopicSessionin interfaceXATopicSession- Returns:
- the topic session object.
- Throws:
JMSException
-
createSubscriber
public TopicSubscriber createSubscriber(Topic topic, String selector, boolean noLocal) throws JMSException
Delegates the call to the wrapped JMS session.- Throws:
JMSException
-
createSubscriber
public TopicSubscriber createSubscriber(Topic topic) throws JMSException
Delegates the call to the wrapped JMS session.- Throws:
JMSException
-
-