TIBCO Adapter SDK C++ Reference
MPublisher::sendWithReply
MPublisher
Publish a message to TIBCO Rendezvous. 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.

This method works only with asynchronous sessions because a timer is involved.

The SDK serializes the MTree so its format is suitable for network transmissions.

This method creates an inbox and its associated subscriber and links it to the caller in the last parameter. It supersedes any reply subject set by the user.

If you want to set a reply subject and broadcast replies to other subscriber, use the methods MPublisher::setReplySubject(), MPublisher::setReplySubject(), and MPublisher::send() instead.

Remarks
This method is useful in an adapter that implements a request-reply protocol. However, it processes only one reply message at a time.

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 you use this method, the reply is sent point to point. In contrast, the reply is broadcast if you use send() and setReplySubject().

If the message is sent over CM transport then the reply message is not certified.

Declaration
void sendWithReply(const MData& rData, MEventListener * pEventListener, unsigned long iTimeout, MSubscriber * & pSubscriber) throw(MException);
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.