TIBCO Adapter SDK C++ Reference
MApp::setAdvisoryListener
MApp
Install a custom advisory listener for advisories related to the creation of MRvSession objects created by the SDK from configuration information.
Remarks
Deprecated. Use setAdvisoryListener( MAdvisoryListener *pDefaultAdvListener , Mboolean bOwn = Mfalse ) instead.

This method must be called before MApp::start(). This method replaces any existing listener with the one specified by the pDefaultAdvListener argument.

This method owns one instance of the MAdvisory class per MApp. It also maintains the sequence dependency of deserialization for advisory-related configuration information (all advisory info must be deserialized before any MRvSession info).

Parameters
Parameters Description
MEventListener * pDefaultAdvListener Custom advisory listener used for handling advisory messages. All generated advisory messages will invoke the user's pDefaultAdvListener->onEvent() method.
Mboolean bOwn = Mfalse If this flag is true, TIBCO Adapter SDK takes ownership of the listener. Otherwise, the user is responsible for destroying the listener.
Declaration
virtual void setAdvisoryListener(MEventListener * pDefaultAdvListener, Mboolean bOwn = Mfalse);
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.