org.objectweb.jonas_jms
Class JTopicSession

java.lang.Object
  extended by org.objectweb.jonas_jms.JSession
      extended by org.objectweb.jonas_jms.JTopicSession
All Implemented Interfaces:
Runnable, Session, TopicSession, Synchronization

public class JTopicSession
extends JSession
implements TopicSession

Author:
Laurent Chauvirey, Frederic Maistre, Nicolas Tachker Contributor(s): Philippe Durieux Philippe Coq

Field Summary
protected  TopicSession ts
           
protected  XATopicConnection xatc
           
protected  XATopicSession xats
           
 
Fields inherited from class org.objectweb.jonas_jms.JSession
closed, currtx, jconn, sess, tm, txover, xac, xares, xasess
 
Fields inherited from interface javax.jms.Session
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTED
 
Constructor Summary
JTopicSession(JConnection jconn, XATopicConnection xatc)
          Constructor
 
Method Summary
 TopicSubscriber createDurableSubscriber(Topic topic, String name)
           
 TopicSubscriber createDurableSubscriber(Topic topic, String name, String messageSelector, boolean noLocal)
           
 TopicPublisher createPublisher(Topic topic)
           
 TopicSubscriber createSubscriber(Topic topic)
           
 TopicSubscriber createSubscriber(Topic topic, String messageSelector, boolean noLocal)
           
 TemporaryTopic createTemporaryTopic()
           
 Topic createTopic(String topicName)
           
protected  Session getMOMSession()
          Get the underlaying MOM Session.
protected  TopicSession getMOMTopicSession()
           
protected  void MOMSessionClose()
           
 void unsubscribe(String name)
           
 
Methods inherited from class org.objectweb.jonas_jms.JSession
afterCompletion, beforeCompletion, close, commit, createBrowser, createBrowser, createBytesMessage, createConsumer, createConsumer, createConsumer, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createQueue, createStreamMessage, createTemporaryQueue, createTextMessage, createTextMessage, getAcknowledgeMode, getMessageListener, getTransacted, getXAResource, PhysicalClose, recover, rollback, run, setMessageListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jms.Session
close, commit, createBrowser, createBrowser, createBytesMessage, createConsumer, createConsumer, createConsumer, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createQueue, createStreamMessage, createTemporaryQueue, createTextMessage, createTextMessage, getAcknowledgeMode, getMessageListener, getTransacted, recover, rollback, run, setMessageListener
 

Field Detail

xatc

protected XATopicConnection xatc

ts

protected TopicSession ts

xats

protected XATopicSession xats
Constructor Detail

JTopicSession

public JTopicSession(JConnection jconn,
                     XATopicConnection xatc)
Constructor

Method Detail

getMOMSession

protected Session getMOMSession()
                         throws JMSException
Get the underlaying MOM Session.

Overrides:
getMOMSession in class JSession
Returns:
- session
Throws:
JMSException

getMOMTopicSession

protected TopicSession getMOMTopicSession()
                                   throws JMSException
Throws:
JMSException

MOMSessionClose

protected void MOMSessionClose()
Overrides:
MOMSessionClose in class JSession

createTopic

public Topic createTopic(String topicName)
                  throws JMSException
Specified by:
createTopic in interface Session
Specified by:
createTopic in interface TopicSession
Overrides:
createTopic in class JSession
Throws:
JMSException

createSubscriber

public TopicSubscriber createSubscriber(Topic topic)
                                 throws JMSException
Specified by:
createSubscriber in interface TopicSession
Throws:
JMSException

createSubscriber

public TopicSubscriber createSubscriber(Topic topic,
                                        String messageSelector,
                                        boolean noLocal)
                                 throws JMSException
Specified by:
createSubscriber in interface TopicSession
Throws:
JMSException

createDurableSubscriber

public TopicSubscriber createDurableSubscriber(Topic topic,
                                               String name)
                                        throws JMSException
Specified by:
createDurableSubscriber in interface Session
Specified by:
createDurableSubscriber in interface TopicSession
Overrides:
createDurableSubscriber in class JSession
Throws:
JMSException

createDurableSubscriber

public TopicSubscriber createDurableSubscriber(Topic topic,
                                               String name,
                                               String messageSelector,
                                               boolean noLocal)
                                        throws JMSException
Specified by:
createDurableSubscriber in interface Session
Specified by:
createDurableSubscriber in interface TopicSession
Overrides:
createDurableSubscriber in class JSession
Throws:
JMSException

createPublisher

public TopicPublisher createPublisher(Topic topic)
                               throws JMSException
Specified by:
createPublisher in interface TopicSession
Throws:
JMSException

createTemporaryTopic

public TemporaryTopic createTemporaryTopic()
                                    throws JMSException
Specified by:
createTemporaryTopic in interface Session
Specified by:
createTemporaryTopic in interface TopicSession
Overrides:
createTemporaryTopic in class JSession
Throws:
JMSException

unsubscribe

public void unsubscribe(String name)
                 throws JMSException,
                        InvalidDestinationException
Specified by:
unsubscribe in interface Session
Specified by:
unsubscribe in interface TopicSession
Overrides:
unsubscribe in class JSession
Throws:
JMSException
InvalidDestinationException


Copyright © 2007 OW2 Consortium. All Rights Reserved.