Class: QueueSession

QueueSession

Class that works as a context for sending and receiving messages on a Queue.

new QueueSession()

This method is not meant to be used directly. Creates a QueueSession object that works as a context for sending and receiving messages on a Queue.

Extends

Method Summary

createReceiver
Creates a new QueueReceiver object for receiving messages on a specific Queue.
createSender
Creates a new QueueSender object for sending messages on a specific Queue.

Inherited Methods

Method Detail

createReceiver(queue, messageSelector) → {QueueReceiver}

Creates a new QueueReceiver object for receiving messages on a specific Queue.
Parameters:
Name Type Description
queue Queue queue from which the receiver must receive messages.
messageSelector String specifies the optional selector, e.g. the rule to be applied to messages being received to filter them or not. See JMS specifications for more information on message selectors.
Returns:
Type
QueueReceiver

createSender(queue) → {QueueSender}

Creates a new QueueSender object for sending messages on a specific Queue.
Parameters:
Name Type Description
queue Queue queue to which the sender must send messages.
Returns:
Type
QueueSender