javax.jms
Interface Session
- 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 03:56:06 -0600 (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
- Throws:
JMSException
createMapMessage
public MapMessage createMapMessage()
throws JMSException
- Throws:
JMSException
createMessage
public Message createMessage()
throws JMSException
- Throws:
JMSException
createObjectMessage
public ObjectMessage createObjectMessage()
throws JMSException
- Throws:
JMSException
createObjectMessage
public ObjectMessage createObjectMessage(java.io.Serializable object)
throws JMSException
- Throws:
JMSException
createStreamMessage
public StreamMessage createStreamMessage()
throws JMSException
- Throws:
JMSException
createTextMessage
public TextMessage createTextMessage()
throws JMSException
- Throws:
JMSException
createTextMessage
public TextMessage createTextMessage(java.lang.String text)
throws JMSException
- Throws:
JMSException
getTransacted
public boolean getTransacted()
throws JMSException
- Throws:
JMSException
getAcknowledgeMode
public int getAcknowledgeMode()
throws JMSException
- Throws:
JMSException
commit
public void commit()
throws JMSException
- Throws:
JMSException
rollback
public void rollback()
throws JMSException
- Throws:
JMSException
close
public void close()
throws JMSException
- Throws:
JMSException
recover
public void recover()
throws JMSException
- Throws:
JMSException
getMessageListener
public MessageListener getMessageListener()
throws JMSException
- Throws:
JMSException
setMessageListener
public void setMessageListener(MessageListener listener)
throws JMSException
- Throws:
JMSException
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
createProducer
public MessageProducer createProducer(Destination destination)
throws JMSException
- Throws:
JMSException
createConsumer
public MessageConsumer createConsumer(Destination destination)
throws JMSException
- Throws:
JMSException
createConsumer
public MessageConsumer createConsumer(Destination destination,
java.lang.String messageSelector)
throws JMSException
- Throws:
JMSException
createConsumer
public MessageConsumer createConsumer(Destination destination,
java.lang.String messageSelector,
boolean NoLocal)
throws JMSException
- Throws:
JMSException
createQueue
public Queue createQueue(java.lang.String queueName)
throws JMSException
- Throws:
JMSException
createTopic
public Topic createTopic(java.lang.String topicName)
throws JMSException
- Throws:
JMSException
createDurableSubscriber
public TopicSubscriber createDurableSubscriber(Topic topic,
java.lang.String name)
throws JMSException
- Throws:
JMSException
createDurableSubscriber
public TopicSubscriber createDurableSubscriber(Topic topic,
java.lang.String name,
java.lang.String messageSelector,
boolean noLocal)
throws JMSException
- Throws:
JMSException
createBrowser
public QueueBrowser createBrowser(Queue queue)
throws JMSException
- Throws:
JMSException
createBrowser
public QueueBrowser createBrowser(Queue queue,
java.lang.String messageSelector)
throws JMSException
- Throws:
JMSException
createTemporaryQueue
public TemporaryQueue createTemporaryQueue()
throws JMSException
- Throws:
JMSException
createTemporaryTopic
public TemporaryTopic createTemporaryTopic()
throws JMSException
- Throws:
JMSException
unsubscribe
public void unsubscribe(java.lang.String name)
throws JMSException
- Throws:
JMSException