|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mq.jms.MQSession | +--com.ibm.mq.jms.MQQueueSession
An MQQueueSession provides methods to create MQQueueReceivers, MQQueueSenders, MQQueueBrowsers, and MQTemporaryQueues.
Field Summary |
Fields inherited from interface javax.jms.Session |
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTED |
Method Summary | |
void |
commit()
Commits all messages done in this transaction and releases any locks currently held. |
javax.jms.MessageConsumer |
createConsumer(javax.jms.Destination dest)
Creates a MessageConsumer for the specified Destination. |
javax.jms.MessageConsumer |
createConsumer(javax.jms.Destination dest,
java.lang.String sel)
Creates a MessageConsumer for the specified Destination, using a message selector. |
javax.jms.MessageProducer |
createProducer(javax.jms.Destination dest)
Creates a MessageProducer to send messages to the specified destination. |
javax.jms.QueueReceiver |
createReceiver(javax.jms.Queue queue)
Creates a QueueReceiver object to receive messages from the specified queue. |
javax.jms.QueueReceiver |
createReceiver(javax.jms.Queue queue,
java.lang.String messageSelector)
Creates an MQQueueReceiver object to receive messages from the specified queue and message selector. |
javax.jms.QueueSender |
createSender(javax.jms.Queue queue)
Creates a QueueSender object to send messages to the specified queue. |
javax.jms.TemporaryQueue |
createTemporaryQueue()
Creates a JMS temporary queue. |
void |
recover()
Restarts message delivery from the oldest unacknowledged message. |
void |
rollback()
Rolls back any messages done in this transaction and releases any locks currently held. |
Methods inherited from class com.ibm.mq.jms.MQSession |
close, createBrowser, createBrowser, createBytesMessage, createDurableSubscriber, createDurableSubscriber, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createQueue, createStreamMessage, createTextMessage, createTextMessage, getAcknowledgeMode, getMessageListener, getTransacted, setMessageListener |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jms.QueueSession |
createBrowser, createBrowser, createQueue |
Methods inherited from interface javax.jms.Session |
close, createBytesMessage, createDurableSubscriber, createDurableSubscriber, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createStreamMessage, createTextMessage, createTextMessage, getAcknowledgeMode, getMessageListener, getTransacted, run, setMessageListener |
Method Detail |
public void commit() throws javax.jms.JMSException
MQSession
commit
in interface javax.jms.Session
commit
in class MQSession
javax.jms.JMSException
- with one of the following reasons:
public void rollback() throws javax.jms.JMSException
rollback
in interface javax.jms.Session
rollback
in class MQSession
javax.jms.JMSException
- if JMS implementation fails to roll back the
the transaction due to some internal error.public void recover() throws javax.jms.JMSException
recover
in interface javax.jms.Session
recover
in class MQSession
javax.jms.JMSException
- with one of the following reasons:
public javax.jms.QueueSender createSender(javax.jms.Queue queue) throws javax.jms.JMSException
createSender
in interface javax.jms.QueueSession
javax.jms.JMSException
public javax.jms.QueueReceiver createReceiver(javax.jms.Queue queue) throws javax.jms.JMSException
createReceiver
in interface javax.jms.QueueSession
javax.jms.JMSException
public javax.jms.QueueReceiver createReceiver(javax.jms.Queue queue, java.lang.String messageSelector) throws javax.jms.JMSException
createReceiver
in interface javax.jms.QueueSession
javax.jms.JMSException
public javax.jms.TemporaryQueue createTemporaryQueue() throws javax.jms.JMSException
MQSession
createTemporaryQueue
in interface javax.jms.QueueSession
createTemporaryQueue
in class MQSession
javax.jms.JMSException
- IllegalStateException
with one of the following reasons:
public javax.jms.MessageConsumer createConsumer(javax.jms.Destination dest) throws javax.jms.JMSException
MQSession
createConsumer
in interface javax.jms.Session
createConsumer
in class MQSession
dest
- the Destination to access.
javax.jms.JMSException
- if the command fails due to some internal JMS error.public javax.jms.MessageConsumer createConsumer(javax.jms.Destination dest, java.lang.String sel) throws javax.jms.JMSException
MQSession
createConsumer
in interface javax.jms.Session
createConsumer
in class MQSession
dest
- the Destination to access.sel
- the message selector
javax.jms.JMSException
- if the command fails due to some internal JMS error.public javax.jms.MessageProducer createProducer(javax.jms.Destination dest) throws javax.jms.JMSException
MQSession
createProducer
in interface javax.jms.Session
createProducer
in class MQSession
dest
- the Destination to send to, or null if this is a producer which does not
have a specified destination.
javax.jms.JMSException
- with reason
MQJMS_EXCEPTION_MQ_NULL_QMGR
|
(c) Copyright IBM Corp. 2005. All Rights Reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |