Example usage for Java javax.jms Session fields, constructors, methods, implement or subclass
The text is from its open source code.
int | AUTO_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. |
int | CLIENT_ACKNOWLEDGE With this acknowledgment mode, the client acknowledges a consumed message by calling the message's acknowledge method. |
int | DUPS_OK_ACKNOWLEDGE This acknowledgment mode instructs the session to lazily acknowledge the delivery of messages. |
int | SESSION_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. |
void | close() Closes the session. |
void | commit() Commits all messages done in this transaction and releases any locks currently held. |
QueueBrowser | createBrowser(Queue queue) Creates a QueueBrowser object to peek at the messages on the specified queue. |
QueueBrowser | createBrowser(Queue queue, String messageSelector) Creates a QueueBrowser object to peek at the messages on the specified queue using a message selector. |
BytesMessage | createBytesMessage() Creates a BytesMessage object. |
MessageConsumer | createConsumer(Destination destination) Creates a MessageConsumer for the specified destination. |
MessageConsumer | createConsumer(Destination destination, java.lang.String messageSelector) Creates a MessageConsumer for the specified destination, using a message selector. |
MessageConsumer | createConsumer(Destination destination, java.lang.String messageSelector, boolean noLocal) Creates a MessageConsumer for the specified destination, specifying a message selector and the noLocal parameter. |
TopicSubscriber | createDurableSubscriber(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. |
TopicSubscriber | createDurableSubscriber(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. |
MapMessage | createMapMessage() Creates a MapMessage object. |
Message | createMessage() Creates a Message object. |
ObjectMessage | createObjectMessage(Serializable object) Creates an initialized ObjectMessage object. |
ObjectMessage | createObjectMessage() Creates an ObjectMessage object. |
MessageProducer | createProducer(Destination destination) Creates a MessageProducer to send messages to the specified destination. |
Queue | createQueue(String queueName) Creates a Queue object which encapsulates a specified provider-specific queue name. |
MessageConsumer | createSharedConsumer(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. |
MessageConsumer | createSharedConsumer(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. |
MessageConsumer | createSharedDurableConsumer(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. |
MessageConsumer | createSharedDurableConsumer(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. |
StreamMessage | createStreamMessage() Creates a StreamMessage object. |
TemporaryQueue | createTemporaryQueue() Creates a TemporaryQueue object. |
TemporaryTopic | createTemporaryTopic() Creates a TemporaryTopic object. |
TextMessage | createTextMessage(String text) Creates an initialized TextMessage object. |
TextMessage | createTextMessage() Creates a TextMessage object. |
Topic | createTopic(String topicName) Creates a Topic object which encapsulates a specified provider-specific topic name. |
int | getAcknowledgeMode() Returns the acknowledgement mode of the session. |
Class> | getClass() Returns the runtime class of this Object . |
boolean | getTransacted() Indicates whether the session is in transacted mode. |
void | recover() Stops message delivery in this session, and restarts message delivery with the oldest unacknowledged message. |
void | rollback() Rolls back any messages done in this transaction and releases any locks currently held. |
void | run() Optional operation, intended to be used only by Application Servers, not by ordinary JMS clients. |
String | toString() Returns a string representation of the object. |
void | unsubscribe(String name) Unsubscribes a durable subscription that has been created by a client. |