TIBCO Adapter SDK C++ Reference
MAdvisory::send
MAdvisory
Present the user advisory on a session or the process transport.
Remarks
While the SDK provides the facility to generate user advisories, it should be used sparingly. It is intended for situations where there is effectively no other way of notifying internal code that an unusual situation has occurred. In typical adapters, there is no need for this sort of functionality. However, in cases where an API is using the SDK to offer services, it is possible to arrive at the situation where an exception cannot be thrown when an error occurs. It may be appropriate to send a user-generated advisory under these kinds of circumstances.
Parameters
Parameters Description
MString const & advSubject Subject suffix on which to publish this advisory.
MString const & advClass The class or category of this advisory.
MString const & advMsg Message to send with this advisory.
MString const & sessionName = MAdvisory::s_sProcessTransport The session on which this advisory should be presented. It defaults to the process transport.
Declaration
void send(MString const & advSubject, MString const & advClass, MString const & advMsg, MString const & sessionName = MAdvisory::s_sProcessTransport) throw(MException);
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.