MQQueueSession

public class MQQueueSession
extends MQSession
implements QueueSession
java.lang.Object
   |
   +----com.ibm.mq.jms.MQSession
           |
           +----com.ibm.mq.jms.MQQueueSession
          

An MQQueueSession provides methods to create MQQueueReceivers, MQQueueSenders, MQQueueBrowsers , and MQTemporaryQueues.

Methods

commit

public void commit() throws JMSException;

Commits all messages done in this transaction and releases any locks currently held.

Exceptions

createReceiver

public QueueReceiver createReceiver(Queue queue) throws JMSException;

Creates a QueueReceiver object to receive messages from the specified queue.

Exceptions

createReceiver

public QueueReceiver createReceiver(Queue queue, String messageSelector) 
              throws JMSException;

Creates an MQQueueReceiver object to receive messages from the specified queue and message selector.

Exceptions

createSender

public QueueSender createSender(Queue queue) throws JMSException;

Creates a QueueSender object to send messages to the specified queue.

Exceptions

createTemporaryQueue

public TemporaryQueue createTemporaryQueue() throws JMSException;

Creates a JMS temporary queue. The temporary queue remains until the connection ends or the queue is explicitly deleted, whichever is the sooner.

Returns
Exceptions

recover

public void recover() throws JMSException;

Restarts message delivery from the oldest unacknowledged message. Analogous to rollback(), but for the non-transacted case.

rollback

public void rollback() throws JMSException;

Rolls back any messages done in this transaction and releases any locks currently held.

Exceptions