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) $

Field Summary
static int AUTO_ACKNOWLEDGE
           
static int CLIENT_ACKNOWLEDGE
           
static int DUPS_OK_ACKNOWLEDGE
           
static int SESSION_TRANSACTED
           
 
Method Summary
 void close()
           
 void commit()
           
 QueueBrowser createBrowser(Queue queue)
           
 QueueBrowser createBrowser(Queue queue, String messageSelector)
           
 BytesMessage createBytesMessage()
           
 MessageConsumer createConsumer(Destination destination)
           
 MessageConsumer createConsumer(Destination destination, String messageSelector)
           
 MessageConsumer createConsumer(Destination destination, String messageSelector, boolean NoLocal)
           
 TopicSubscriber createDurableSubscriber(Topic topic, String name)
           
 TopicSubscriber createDurableSubscriber(Topic topic, String name, String messageSelector, boolean noLocal)
           
 MapMessage createMapMessage()
           
 Message createMessage()
           
 ObjectMessage createObjectMessage()
           
 ObjectMessage createObjectMessage(Serializable object)
           
 MessageProducer createProducer(Destination destination)
           
 Queue createQueue(String queueName)
           
 StreamMessage createStreamMessage()
           
 TemporaryQueue createTemporaryQueue()
           
 TemporaryTopic createTemporaryTopic()
           
 TextMessage createTextMessage()
           
 TextMessage createTextMessage(String text)
           
 Topic createTopic(String topicName)
           
 int getAcknowledgeMode()
           
 MessageListener getMessageListener()
           
 boolean getTransacted()
           
 void recover()
           
 void rollback()
           
 void run()
           
 void setMessageListener(MessageListener listener)
           
 void unsubscribe(String name)
           
 

Field Detail

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
Method Detail

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.