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
|
close |
commit |
createBytesMessage |
createConsumer |
createDurableSubscriber |
createMapMessage |
createMessage |
createObjectMessage |
createProducer |
createQueue |
createTemporaryQueue |
createTemporaryTopic |
createTextMessage |
createTopic |
getAcknowledgeMode |
getTransacted |
recover |
rollback |
unsubscribe |
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 informations 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