QueueRequestor helper class simplifies
making service requests.
The QueueRequestor constructor is given a non-transacted
QueueSession and a destination Queue. It creates a
TemporaryQueue for the responses and provides a
request method that sends the request message and waits
for its reply.
This is a very basic request/reply abstraction which assumes the session is non-transacted with a delivery mode of either AUTO_ACKNOWLEDGE or DUPS_OK_ACKNOWLEDGE. It is expected that most applications will create less basic implementations.
javax.jms.TopicRequestor
| Modifier and Type | Field and Description |
|---|---|
| pack-priv QueueReceiver | |
| pack-priv QueueSender | |
| pack-priv QueueSession | |
| pack-priv TemporaryQueue |
| Access | Constructor and Description |
|---|---|
| public | QueueRequestor(QueueSession
the session, Queue QueueSession the queue belongs tothe queue to perform the request/reply call on queue)Constructor for the |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Message |
| receiver | back to summary |
|---|---|
| pack-priv QueueReceiver receiver | |
| sender | back to summary |
|---|---|
| pack-priv QueueSender sender | |
| session | back to summary |
|---|---|
| pack-priv QueueSession session | |
| tempQueue | back to summary |
|---|---|
| pack-priv TemporaryQueue tempQueue | |
| QueueRequestor | back to summary |
|---|---|
| public QueueRequestor(QueueSession session, Queue queue) throws JMSException Constructor for the This implementation assumes the session parameter to be non-transacted,
with a delivery mode of either
| |
| close | back to summary |
|---|---|
| public void close() throws JMSException Closes the Since a provider may allocate some resources on behalf of a
Note that this method closes the
| |
| request | back to summary |
|---|---|
| public Message request(Message message) throws JMSException Sends a request and waits for a reply. The temporary queue is used for
the
| |