TIBCO EMS .NET API 8.5
TIBCO EMS .NET API 8.5
|
This class provides a request/reply facility for messaging over a queue, using a TemporaryQueue for handling replies. More...
Public Member Functions | |
QueueRequestor (QueueSession session, Queue queue) | |
Construct a QueueRequestor object given a queue session and queue. More... | |
Message | Request (Message message) |
Send the request message and obtain its reply. More... | |
void | Close () |
Close the QueueRequestor object. More... | |
This class provides a request/reply facility for messaging over a queue, using a TemporaryQueue for handling replies.
We recommend that clients follow these steps:
|
inline |
Construct a QueueRequestor object given a queue session and queue.
session | The non-transacted QueueSession.The requestor operates within this queue session.This session must not use transaction semantics. Its delivery mode must be either AutoAcknowledge or DupsOkAcknowledge.The Close method also closes this session as a side effect. |
queue | The queue destination on which to send a request. Note that this queue must belong to the QueueSession provided by the session parameter |
EMSException | An EMSExceptin may be thrown in case of failure |
|
inline |
Close the QueueRequestor object.
This method also closes the QueueSession as a side effect.
EMSException | In case of errors in closing the QueueRequestor object |
Send the request message and obtain its reply.
The requestor waits for and receives only the first reply. It discards other replies that arrive subsequently.
message | The request message to be sent. |
EMSException | In case of errors in sending request and receiving reply |