- All Superinterfaces:
- java.lang.Runnable
- All Known Subinterfaces:
- QueueSession, TopicSession, XAQueueSession, XASession, XATopicSession
- public interface Session
- extends java.lang.Runnable
- Version:
- $Rev: 46019 $ $Date: 2004-09-14 02:56:06 -0700 (Tue, 14 Sep 2004) $
AUTO_ACKNOWLEDGE
public static final int AUTO_ACKNOWLEDGE
- See Also:
- Constant Field Values
CLIENT_ACKNOWLEDGE
public static final int CLIENT_ACKNOWLEDGE
- See Also:
- Constant Field Values
DUPS_OK_ACKNOWLEDGE
public static final int DUPS_OK_ACKNOWLEDGE
- See Also:
- Constant Field Values
SESSION_TRANSACTED
public static final int SESSION_TRANSACTED
- See Also:
- Constant Field Values
createBytesMessage
public BytesMessage createBytesMessage()
throws JMSException
createMapMessage
public MapMessage createMapMessage()
throws JMSException
createMessage
public Message createMessage()
throws JMSException
createObjectMessage
public ObjectMessage createObjectMessage()
throws JMSException
createObjectMessage
public ObjectMessage createObjectMessage(java.io.Serializable object)
throws JMSException
createStreamMessage
public StreamMessage createStreamMessage()
throws JMSException
createTextMessage
public TextMessage createTextMessage()
throws JMSException
createTextMessage
public TextMessage createTextMessage(java.lang.String text)
throws JMSException
getTransacted
public boolean getTransacted()
throws JMSException
getAcknowledgeMode
public int getAcknowledgeMode()
throws JMSException
commit
public void commit()
throws JMSException
rollback
public void rollback()
throws JMSException
close
public void close()
throws JMSException
recover
public void recover()
throws JMSException
getMessageListener
public MessageListener getMessageListener()
throws JMSException
setMessageListener
public void setMessageListener(MessageListener listener)
throws JMSException
run
public void run()
- Description copied from interface:
java.lang.Runnable
- This method will be called by whoever wishes to run your class
implementing Runnable. Note that there are no restrictions on what
you are allowed to do in the run method, except that you cannot
throw a checked exception.
- Specified by:
run in interface java.lang.Runnable
createProducer
public MessageProducer createProducer(Destination destination)
throws JMSException
createConsumer
public MessageConsumer createConsumer(Destination destination)
throws JMSException
createConsumer
public MessageConsumer createConsumer(Destination destination,
java.lang.String messageSelector)
throws JMSException
createConsumer
public MessageConsumer createConsumer(Destination destination,
java.lang.String messageSelector,
boolean NoLocal)
throws JMSException
createQueue
public Queue createQueue(java.lang.String queueName)
throws JMSException
createTopic
public Topic createTopic(java.lang.String topicName)
throws JMSException
createDurableSubscriber
public TopicSubscriber createDurableSubscriber(Topic topic,
java.lang.String name)
throws JMSException
createDurableSubscriber
public TopicSubscriber createDurableSubscriber(Topic topic,
java.lang.String name,
java.lang.String messageSelector,
boolean noLocal)
throws JMSException
createBrowser
public QueueBrowser createBrowser(Queue queue)
throws JMSException
createBrowser
public QueueBrowser createBrowser(Queue queue,
java.lang.String messageSelector)
throws JMSException
createTemporaryQueue
public TemporaryQueue createTemporaryQueue()
throws JMSException
createTemporaryTopic
public TemporaryTopic createTemporaryTopic()
throws JMSException
unsubscribe
public void unsubscribe(java.lang.String name)
throws JMSException