TIBCO EMS .NET API 8.4
TIBCO EMS .NET API 8.4
|
This class provides a request/reply facility for messaging over a topic. More...
Public Member Functions | |
TopicRequestor (TopicSession session, Topic topic) | |
Construct a TopicRequestor object given a topic session and topic. More... | |
Message | Request (Message message) |
Send the request message and obtain its reply. More... | |
void | Close () |
Close the TopicRequestor object. More... | |
This class provides a request/reply facility for messaging over a topic.
We recommend that clients follow these steps:
|
inline |
Construct a TopicRequestor object given a topic session and topic.
session | The non-transacted TopicSession.The requestor operates within this topic 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. |
topic | The topic destination on which to send a request and wait for a reply. Note that this topic must belong to the TopicSession provided by the session parameter |
EMSException | An EMSExceptin may be thrown in case of failure |
|
inline |
Close the TopicRequestor object.
This method also closes the TopicSession as a side effect.
EMSException | In case of errors in closing the TopicRequestor object |
Send the request message and obtain its reply.
The requestor receives only the first reply. It discards other replies that arrive subsequently.
message | The request message. |
EMSException | In case of errors in sending request and receiving reply |