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.