|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
A QueueSession provides methods for creating QueueReceiver's, QueueSender's, QueueBrowser's and TemporaryQueues.
If there are messages that have been received but not acknowledged when a QueueSession terminates, these messages will be retained and redelivered when a consumer next accesses the queue.
Session| Fields inherited from class javax.jms.Session |
AUTO_ACKNOWLEDGE,
CLIENT_ACKNOWLEDGE,
DUPS_OK_ACKNOWLEDGE |
| Method Summary | |
QueueBrowser |
createBrowser(Queue queue)
Create a QueueBrowser to peek at the messages on the specified queue. |
QueueBrowser |
createBrowser(Queue queue,
java.lang.String messageSelector)
Create a QueueBrowser to peek at the messages on the specified queue. |
Queue |
createQueue(java.lang.String queueName)
Create a Queue given a Queue name. |
QueueReceiver |
createReceiver(Queue queue)
Create a QueueReceiver to receive messages from the specified queue. |
QueueReceiver |
createReceiver(Queue queue,
java.lang.String messageSelector)
Create a QueueReceiver to receive messages from the specified queue. |
QueueSender |
createSender(Queue queue)
Create a QueueSender to send messages to the specified queue. |
TemporaryQueue |
createTemporaryQueue()
Create a temporary queue. |
| Methods inherited from interface javax.jms.Session |
close,
commit,
createBytesMessage,
createMapMessage,
createMessage,
createObjectMessage,
createObjectMessage,
createStreamMessage,
createTextMessage,
createTextMessage,
getMessageListener,
getTransacted,
recover,
rollback,
setMessageListener |
| Methods inherited from interface java.lang.Runnable |
run |
| Method Detail |
public Queue createQueue(java.lang.String queueName)
throws JMSException
This facility is provided for the rare cases where clients need to dynamically manipulate queue identity. This allows the creation of a queue with a provider specific name. Clients that depend on this ability are not portable.
queueName - the name of this queue
public QueueReceiver createReceiver(Queue queue)
throws JMSException
queue - the queue to access
public QueueReceiver createReceiver(Queue queue,
java.lang.String messageSelector)
throws JMSException
queue - the queue to accessmessageSelector - only messages with properties matching the
message selector expression are delivered
public QueueSender createSender(Queue queue)
throws JMSException
queue - the queue to access, or null if this is an unidentifed
producer.
public QueueBrowser createBrowser(Queue queue)
throws JMSException
queue - the queue to access
public QueueBrowser createBrowser(Queue queue,
java.lang.String messageSelector)
throws JMSException
queue - the queue to accessmessageSelector - only messages with properties matching the
message selector expression are delivered
public TemporaryQueue createTemporaryQueue()
throws JMSException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||