javax.jms

Interface Session

public interface Session extends Runnable

Field Summary
static intAUTO_ACKNOWLEDGE
static intCLIENT_ACKNOWLEDGE
static intDUPS_OK_ACKNOWLEDGE
static intSESSION_TRANSACTED
Method Summary
voidclose()
voidcommit()
QueueBrowsercreateBrowser(Queue queue)
QueueBrowsercreateBrowser(Queue queue, String messageSelector)
BytesMessagecreateBytesMessage()
MessageConsumercreateConsumer(Destination destination)
MessageConsumercreateConsumer(Destination destination, String messageSelector)
MessageConsumercreateConsumer(Destination destination, String messageSelector, boolean NoLocal)
TopicSubscribercreateDurableSubscriber(Topic topic, String name)
TopicSubscribercreateDurableSubscriber(Topic topic, String name, String messageSelector, boolean noLocal)
MapMessagecreateMapMessage()
MessagecreateMessage()
ObjectMessagecreateObjectMessage()
ObjectMessagecreateObjectMessage(Serializable object)
MessageProducercreateProducer(Destination destination)
QueuecreateQueue(String queueName)
StreamMessagecreateStreamMessage()
TemporaryQueuecreateTemporaryQueue()
TemporaryTopiccreateTemporaryTopic()
TextMessagecreateTextMessage()
TextMessagecreateTextMessage(String text)
TopiccreateTopic(String topicName)
intgetAcknowledgeMode()
MessageListenergetMessageListener()
booleangetTransacted()
voidrecover()
voidrollback()
voidrun()
voidsetMessageListener(MessageListener listener)
voidunsubscribe(String name)

Field Detail

AUTO_ACKNOWLEDGE

public static final int AUTO_ACKNOWLEDGE

CLIENT_ACKNOWLEDGE

public static final int CLIENT_ACKNOWLEDGE

DUPS_OK_ACKNOWLEDGE

public static final int DUPS_OK_ACKNOWLEDGE

SESSION_TRANSACTED

public static final int SESSION_TRANSACTED

Method Detail

close

public void close()

commit

public void commit()

createBrowser

public QueueBrowser createBrowser(Queue queue)

createBrowser

public QueueBrowser createBrowser(Queue queue, String messageSelector)

createBytesMessage

public BytesMessage createBytesMessage()

createConsumer

public MessageConsumer createConsumer(Destination destination)

createConsumer

public MessageConsumer createConsumer(Destination destination, String messageSelector)

createConsumer

public MessageConsumer createConsumer(Destination destination, String messageSelector, boolean NoLocal)

createDurableSubscriber

public TopicSubscriber createDurableSubscriber(Topic topic, String name)

createDurableSubscriber

public TopicSubscriber createDurableSubscriber(Topic topic, String name, String messageSelector, boolean noLocal)

createMapMessage

public MapMessage createMapMessage()

createMessage

public Message createMessage()

createObjectMessage

public ObjectMessage createObjectMessage()

createObjectMessage

public ObjectMessage createObjectMessage(Serializable object)

createProducer

public MessageProducer createProducer(Destination destination)

createQueue

public Queue createQueue(String queueName)

createStreamMessage

public StreamMessage createStreamMessage()

createTemporaryQueue

public TemporaryQueue createTemporaryQueue()

createTemporaryTopic

public TemporaryTopic createTemporaryTopic()

createTextMessage

public TextMessage createTextMessage()

createTextMessage

public TextMessage createTextMessage(String text)

createTopic

public Topic createTopic(String topicName)

getAcknowledgeMode

public int getAcknowledgeMode()

getMessageListener

public MessageListener getMessageListener()

getTransacted

public boolean getTransacted()

recover

public void recover()

rollback

public void rollback()

run

public void run()

setMessageListener

public void setMessageListener(MessageListener listener)

unsubscribe

public void unsubscribe(String name)