|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mqe.jms.MQeSession | +--com.ibm.mqe.jms.MQeQueueSession
A QueueSession
provides methods for creating QueueReceivers
,
QueueSenders
and QueueBrowsers
.
Session
Field Summary |
Fields inherited from class com.ibm.mqe.jms.MQeSession |
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE |
Fields inherited from interface javax.jms.Session |
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE |
Constructor Summary | |
MQeQueueSession()
|
Method Summary | |
javax.jms.QueueBrowser |
createBrowser(javax.jms.Queue queue)
Create a QueueBrowser to peek at the messages on the specified queue. |
javax.jms.QueueBrowser |
createBrowser(javax.jms.Queue queue,
java.lang.String messageSelector)
Create a QueueBrowser to peek at the messages on the specified queue. |
javax.jms.Queue |
createQueue(java.lang.String queueName)
Create a Queue given a Queue name. |
javax.jms.QueueReceiver |
createReceiver(javax.jms.Queue queue)
Create a QueueReceiver to receive messages from the specified queue. |
javax.jms.QueueReceiver |
createReceiver(javax.jms.Queue queue,
java.lang.String messageSelector)
Create a QueueReceiver to receive messages from the specified queue. |
javax.jms.QueueSender |
createSender(javax.jms.Queue queue)
Create a QueueSender to send messages to the specified queue. |
Methods inherited from class com.ibm.mqe.jms.MQeSession |
close, commit, createBytesMessage, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createStreamMessage, createTextMessage, createTextMessage, getAcknowledgementMode, getMessageListener, getTransacted, recover, rollback, setMessageListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jms.QueueSession |
createTemporaryQueue |
Methods inherited from interface javax.jms.Session |
close, commit, createBytesMessage, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createStreamMessage, createTextMessage, createTextMessage, getMessageListener, getTransacted, recover, rollback, run, setMessageListener |
Constructor Detail |
public MQeQueueSession()
Method Detail |
public javax.jms.Queue createQueue(java.lang.String queueName) throws javax.jms.JMSException
MQeJMSQueue
, rather than MQeJMSJNDIQueue
.
createQueue
in interface javax.jms.QueueSession
queueName
- the name of this queue
javax.jms.JMSException
- if a session fails to create a queue
due to some JMS error.public javax.jms.QueueReceiver createReceiver(javax.jms.Queue queue) throws javax.jms.JMSException
createReceiver
in interface javax.jms.QueueSession
queue
- the queue to access
javax.jms.JMSException
- if a session fails to create a receiver
due to some JMS error.
javax.jms.InvalidDestinationException
- if invalid Queue specified.public javax.jms.QueueReceiver createReceiver(javax.jms.Queue queue, java.lang.String messageSelector) throws javax.jms.JMSException
createReceiver
in interface javax.jms.QueueSession
queue
- the queue to accessmessageSelector
- only messages with properties matching the
message selector expression are delivered
javax.jms.JMSException
- if a session fails to create a receiver
due to some JMS error.
javax.jms.InvalidDestinationException
- if invalid Queue specified.
javax.jms.InvalidSelectorException
- if the message selector is invalid.public javax.jms.QueueSender createSender(javax.jms.Queue queue) throws javax.jms.JMSException
createSender
in interface javax.jms.QueueSession
queue
- the queue to access, or null if this is an unidentifed
producer.
javax.jms.JMSException
- if a session fails to create a sender
due to some JMS error.
javax.jms.InvalidDestinationException
- if invalid Queue specified.public javax.jms.QueueBrowser createBrowser(javax.jms.Queue queue) throws javax.jms.JMSException
createBrowser
in interface javax.jms.QueueSession
queue
- the queue to access
javax.jms.JMSException
- if a session fails to create a browser
due to some JMS error.
javax.jms.InvalidDestinationException
- if invalid Queue specified.public javax.jms.QueueBrowser createBrowser(javax.jms.Queue queue, java.lang.String messageSelector) throws javax.jms.JMSException
createBrowser
in interface javax.jms.QueueSession
queue
- the queue to accessmessageSelector
- only messages with properties matching the
message selector expression are delivered
javax.jms.JMSException
- if a session fails to create a browser
due to some JMS error.
javax.jms.InvalidDestinationException
- if invalid Queue specified.
javax.jms.InvalidSelectorException
- if the message selector is invalid.
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |