Java javax.jms Session fields, constructors, methods, implement or subclass

Example usage for Java javax.jms Session fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.jms Session.

The text is from its open source code.

Implementation

javax.jms.Session has the following implementations.
Click this link to see all its implementation.

Field

intAUTO_ACKNOWLEDGE
With this acknowledgment mode, the session automatically acknowledges a client's receipt of a message either when the session has successfully returned from a call to receive or when the message listener the session has called to process the message successfully returns.
intCLIENT_ACKNOWLEDGE
With this acknowledgment mode, the client acknowledges a consumed message by calling the message's acknowledge method.
intDUPS_OK_ACKNOWLEDGE
This acknowledgment mode instructs the session to lazily acknowledge the delivery of messages.
intSESSION_TRANSACTED
This value may be passed as the argument to the method createSession(int sessionMode) on the Connection object to specify that the session should use a local transaction.

Method

voidclose()
Closes the session.
voidcommit()
Commits all messages done in this transaction and releases any locks currently held.
QueueBrowsercreateBrowser(Queue queue)
Creates a QueueBrowser object to peek at the messages on the specified queue.
QueueBrowsercreateBrowser(Queue queue, String messageSelector)
Creates a QueueBrowser object to peek at the messages on the specified queue using a message selector.
BytesMessagecreateBytesMessage()
Creates a BytesMessage object.
MessageConsumercreateConsumer(Destination destination)
Creates a MessageConsumer for the specified destination.
MessageConsumercreateConsumer(Destination destination, java.lang.String messageSelector)
Creates a MessageConsumer for the specified destination, using a message selector.
MessageConsumercreateConsumer(Destination destination, java.lang.String messageSelector, boolean noLocal)
Creates a MessageConsumer for the specified destination, specifying a message selector and the noLocal parameter.
TopicSubscribercreateDurableSubscriber(Topic topic, String name)
Creates an unshared durable subscription on the specified topic (if one does not already exist) and creates a consumer on that durable subscription.
TopicSubscribercreateDurableSubscriber(Topic topic, String name, String messageSelector, boolean noLocal)
Creates an unshared durable subscription on the specified topic (if one does not already exist), specifying a message selector and the noLocal parameter, and creates a consumer on that durable subscription.
MapMessagecreateMapMessage()
Creates a MapMessage object.
MessagecreateMessage()
Creates a Message object.
ObjectMessagecreateObjectMessage(Serializable object)
Creates an initialized ObjectMessage object.
ObjectMessagecreateObjectMessage()
Creates an ObjectMessage object.
MessageProducercreateProducer(Destination destination)
Creates a MessageProducer to send messages to the specified destination.
QueuecreateQueue(String queueName)
Creates a Queue object which encapsulates a specified provider-specific queue name.
MessageConsumercreateSharedConsumer(Topic topic, String sharedSubscriptionName)
Creates a shared non-durable subscription with the specified name on the specified topic (if one does not already exist) and creates a consumer on that subscription.
MessageConsumercreateSharedConsumer(Topic topic, String sharedSubscriptionName, java.lang.String messageSelector)
Creates a shared non-durable subscription with the specified name on the specified topic (if one does not already exist) specifying a message selector, and creates a consumer on that subscription.
MessageConsumercreateSharedDurableConsumer(Topic topic, String name)
Creates a shared durable subscription on the specified topic (if one does not already exist), specifying a message selector and the noLocal parameter, and creates a consumer on that durable subscription.
MessageConsumercreateSharedDurableConsumer(Topic topic, String name, String messageSelector)
Creates a shared durable subscription on the specified topic (if one does not already exist), specifying a message selector, and creates a consumer on that durable subscription.
StreamMessagecreateStreamMessage()
Creates a StreamMessage object.
TemporaryQueuecreateTemporaryQueue()
Creates a TemporaryQueue object.
TemporaryTopiccreateTemporaryTopic()
Creates a TemporaryTopic object.
TextMessagecreateTextMessage(String text)
Creates an initialized TextMessage object.
TextMessagecreateTextMessage()
Creates a TextMessage object.
TopiccreateTopic(String topicName)
Creates a Topic object which encapsulates a specified provider-specific topic name.
intgetAcknowledgeMode()
Returns the acknowledgement mode of the session.
ClassgetClass()
Returns the runtime class of this Object .
booleangetTransacted()
Indicates whether the session is in transacted mode.
voidrecover()
Stops message delivery in this session, and restarts message delivery with the oldest unacknowledged message.
voidrollback()
Rolls back any messages done in this transaction and releases any locks currently held.
voidrun()
Optional operation, intended to be used only by Application Servers, not by ordinary JMS clients.
StringtoString()
Returns a string representation of the object.
voidunsubscribe(String name)
Unsubscribes a durable subscription that has been created by a client.