javax.jms
Interface Session
- All Superinterfaces:
- Runnable
- All Known Subinterfaces:
- QueueSession, TopicSession, XAQueueSession, XASession, XATopicSession
public interface Session
- extends Runnable
- Version:
- $Rev: 46019 $ $Date: 2004-09-14 02:56:06 -0700 (Tue, 14 Sep 2004) $
AUTO_ACKNOWLEDGE
static final int AUTO_ACKNOWLEDGE
- See Also:
- Constant Field Values
CLIENT_ACKNOWLEDGE
static final int CLIENT_ACKNOWLEDGE
- See Also:
- Constant Field Values
DUPS_OK_ACKNOWLEDGE
static final int DUPS_OK_ACKNOWLEDGE
- See Also:
- Constant Field Values
SESSION_TRANSACTED
static final int SESSION_TRANSACTED
- See Also:
- Constant Field Values
createBytesMessage
BytesMessage createBytesMessage()
throws JMSException
- Throws:
JMSException
createMapMessage
MapMessage createMapMessage()
throws JMSException
- Throws:
JMSException
createMessage
Message createMessage()
throws JMSException
- Throws:
JMSException
createObjectMessage
ObjectMessage createObjectMessage()
throws JMSException
- Throws:
JMSException
createObjectMessage
ObjectMessage createObjectMessage(Serializable object)
throws JMSException
- Throws:
JMSException
createStreamMessage
StreamMessage createStreamMessage()
throws JMSException
- Throws:
JMSException
createTextMessage
TextMessage createTextMessage()
throws JMSException
- Throws:
JMSException
createTextMessage
TextMessage createTextMessage(String text)
throws JMSException
- Throws:
JMSException
getTransacted
boolean getTransacted()
throws JMSException
- Throws:
JMSException
getAcknowledgeMode
int getAcknowledgeMode()
throws JMSException
- Throws:
JMSException
commit
void commit()
throws JMSException
- Throws:
JMSException
rollback
void rollback()
throws JMSException
- Throws:
JMSException
close
void close()
throws JMSException
- Throws:
JMSException
recover
void recover()
throws JMSException
- Throws:
JMSException
getMessageListener
MessageListener getMessageListener()
throws JMSException
- Throws:
JMSException
setMessageListener
void setMessageListener(MessageListener listener)
throws JMSException
- Throws:
JMSException
run
void run()
- Specified by:
run
in interface Runnable
createProducer
MessageProducer createProducer(Destination destination)
throws JMSException
- Throws:
JMSException
createConsumer
MessageConsumer createConsumer(Destination destination)
throws JMSException
- Throws:
JMSException
createConsumer
MessageConsumer createConsumer(Destination destination,
String messageSelector)
throws JMSException
- Throws:
JMSException
createConsumer
MessageConsumer createConsumer(Destination destination,
String messageSelector,
boolean NoLocal)
throws JMSException
- Throws:
JMSException
createQueue
Queue createQueue(String queueName)
throws JMSException
- Throws:
JMSException
createTopic
Topic createTopic(String topicName)
throws JMSException
- Throws:
JMSException
createDurableSubscriber
TopicSubscriber createDurableSubscriber(Topic topic,
String name)
throws JMSException
- Throws:
JMSException
createDurableSubscriber
TopicSubscriber createDurableSubscriber(Topic topic,
String name,
String messageSelector,
boolean noLocal)
throws JMSException
- Throws:
JMSException
createBrowser
QueueBrowser createBrowser(Queue queue)
throws JMSException
- Throws:
JMSException
createBrowser
QueueBrowser createBrowser(Queue queue,
String messageSelector)
throws JMSException
- Throws:
JMSException
createTemporaryQueue
TemporaryQueue createTemporaryQueue()
throws JMSException
- Throws:
JMSException
createTemporaryTopic
TemporaryTopic createTemporaryTopic()
throws JMSException
- Throws:
JMSException
unsubscribe
void unsubscribe(String name)
throws JMSException
- Throws:
JMSException
Copyright © 2006 Apache Software Foundation. All Rights Reserved.