TIBCO Adapter SDK C++ Reference
MApp::start
MApp
Start this application. This method first performs some initialization that is internal to the adapter SDK, then calls the application-specific MApp::onInitialization() method.
Remarks
All applications must call this method. The method performs these actions:

  • Prints the banner for this application, as defined in the adapter instance description object or the MAppProperties instance (optional).

  • Creates sessions as specified in the adapter instance description object.

  • Creates a trace and creates sinks as specified in the adapter instance description object, and attaches the trace to the sinks, if any

  • Parses class definitions if any are specified in the adapter instance description object.

  • Creates SDK-specific standard TIBCO Hawk microagents unless the adapter instance description object explicitly prohibits that.

  • Creates event source components as specified in the adapter instance description object (MPublisher, MSubscriber, and so forth).

  • If called with bStartEventLoop set to TRUE, creates an event manager context and hands over control to it. Otherwise, returns control to the calling application.

Applications that use their own threads must call MApp::start( Mfalse ) and handle thread destruction and inter-thread communication themselves before calling MApp::stop().

This method throws an exception if it fails.

Parameters
Parameters Description
Mboolean bStartEventLoop = Mtrue If this parameter is set to TRUE (the default) MApp starts the event loop. If this parameter is set to FALSE, control returns to the application.
Exceptions
Declaration
virtual void start(Mboolean bStartEventLoop = Mtrue) throw(MException);
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.