TIBCO Adapter SDK C++ Reference
|
The data is in MTree format. The application itself is responsible for converting data to MTree format. When the reply is sent, the SDK informs the listener specified by pEventListener.
The SDK serializes the MTree so its format is suitable for network transmissions.
If you want to set a reply subject and broadcast replies to other subscriber, use the methods MPublisher::setReplyDestinationName() and MPublisher::send() instead.
If a call to this method fails, the publisher signals an exception.
The publisher explicitly has to delete the subscription passed in as an MSubscriber pointer.
If the message is sent over CM transport then the reply message is not certified.
If you use this method, the reply is sent point to point. In contrast, the reply is broadcast if you use send() and setReplySubject().
Parameters | Description |
const MTree & rMTree | Pointer to the MTree instance that the publisher will send to TIBCO Rendezvous. |
MEventListener * pEventListener | Pointer to the event listener that will be informed when the reply is received. |
MSubscriber * & pSubscriber | MSubscriber pointer passed to the method which is used to instantiate a reply subscription object. Note that each time you call this method by reference, the SDK creates a new subscription object. The publisher should delete this object when the reply is no longer expected. |
void sendWithReply(const MTree & rMTree, MEventListener * pEventListener, MSubscriber * & pSubscriber) throw(MException);