Class OutboundQueueSession
- java.lang.Object
-
- org.objectweb.joram.client.connector.OutboundSession
-
- org.objectweb.joram.client.connector.OutboundQueueSession
-
- All Implemented Interfaces:
AutoCloseable,Runnable,QueueSession,Session
public class OutboundQueueSession extends OutboundSession implements QueueSession
AnOutboundQueueSessioninstance wraps a JMS QueueSession (XA or not) for a component involved in PTP outbound messaging.
-
-
Field Summary
Fields Modifier and Type Field Description private static booleanDEBUGprivate static Loggerlogger-
Fields inherited from class org.objectweb.joram.client.connector.OutboundSession
cnx, sess, started, transacted, valid
-
Fields inherited from interface javax.jms.Session
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTED
-
-
Constructor Summary
Constructors Constructor Description OutboundQueueSession(Session sess, OutboundConnection cnx)Constructs anOutboundQueueSessioninstance.OutboundQueueSession(Session sess, OutboundConnection cnx, boolean transacted)Constructs anOutboundQueueSessioninstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TopicSubscribercreateDurableSubscriber(Topic topic, String name)API method.TopicSubscribercreateDurableSubscriber(Topic topic, String name, String selector, boolean noLocal)API method.QueueReceivercreateReceiver(Queue queue)Delegates the call to the wrapped JMS session.QueueReceivercreateReceiver(Queue queue, String selector)Delegates the call to the wrapped JMS session.QueueSendercreateSender(Queue queue)Delegates the call to the wrapped JMS session.TemporaryTopiccreateTemporaryTopic()API method.TopiccreateTopic(String topicName)API method.voidunsubscribe(String name)API method.-
Methods inherited from class org.objectweb.joram.client.connector.OutboundSession
checkValidity, close, commit, createBrowser, createBrowser, createBytesMessage, createConsumer, createConsumer, createConsumer, createDurableConsumer, createDurableConsumer, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createQueue, createSharedConsumer, createSharedConsumer, createSharedDurableConsumer, createSharedDurableConsumer, createStreamMessage, createTemporaryQueue, createTextMessage, createTextMessage, getAcknowledgeMode, getMessageListener, getTransacted, isStarted, recover, rollback, run, setMessageListener, start, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.jms.QueueSession
createBrowser, createBrowser, createQueue, createTemporaryQueue
-
Methods inherited from interface javax.jms.Session
close, commit, createBytesMessage, createConsumer, createConsumer, createConsumer, createDurableConsumer, createDurableConsumer, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createSharedConsumer, createSharedConsumer, createSharedDurableConsumer, createSharedDurableConsumer, createStreamMessage, createTextMessage, createTextMessage, getAcknowledgeMode, getMessageListener, getTransacted, recover, rollback, run, setMessageListener
-
-
-
-
Field Detail
-
logger
private static final Logger logger
-
DEBUG
private static final boolean DEBUG
-
-
Constructor Detail
-
OutboundQueueSession
OutboundQueueSession(Session sess, OutboundConnection cnx)
Constructs anOutboundQueueSessioninstance.
-
OutboundQueueSession
OutboundQueueSession(Session sess, OutboundConnection cnx, boolean transacted)
Constructs anOutboundQueueSessioninstance.
-
-
Method Detail
-
createSender
public QueueSender createSender(Queue queue) throws JMSException
Delegates the call to the wrapped JMS session.- Specified by:
createSenderin interfaceQueueSession- Throws:
JMSException
-
createReceiver
public QueueReceiver createReceiver(Queue queue, String selector) throws JMSException
Delegates the call to the wrapped JMS session.- Specified by:
createReceiverin interfaceQueueSession- Throws:
JMSException
-
createReceiver
public QueueReceiver createReceiver(Queue queue) throws JMSException
Delegates the call to the wrapped JMS session.- Specified by:
createReceiverin interfaceQueueSession- Throws:
JMSException
-
createDurableSubscriber
public TopicSubscriber createDurableSubscriber(Topic topic, String name, String selector, boolean noLocal) throws JMSException
API method.- Specified by:
createDurableSubscriberin interfaceSession- Overrides:
createDurableSubscriberin classOutboundSession- Throws:
IllegalStateException- Systematically.JMSException
-
createDurableSubscriber
public TopicSubscriber createDurableSubscriber(Topic topic, String name) throws JMSException
API method.- Specified by:
createDurableSubscriberin interfaceSession- Overrides:
createDurableSubscriberin classOutboundSession- Throws:
IllegalStateException- Systematically.JMSException
-
createTopic
public Topic createTopic(String topicName) throws JMSException
API method.- Specified by:
createTopicin interfaceSession- Overrides:
createTopicin classOutboundSession- Throws:
IllegalStateException- Systematically.JMSException
-
createTemporaryTopic
public TemporaryTopic createTemporaryTopic() throws JMSException
API method.- Specified by:
createTemporaryTopicin interfaceSession- Overrides:
createTemporaryTopicin classOutboundSession- Throws:
IllegalStateException- Systematically.JMSException
-
unsubscribe
public void unsubscribe(String name) throws JMSException
API method.- Specified by:
unsubscribein interfaceSession- Overrides:
unsubscribein classOutboundSession- Throws:
IllegalStateException- Systematically.JMSException
-
-