To initialize the Engine services, the OnixS::FIX::Engine::init method must be used. configFile parameter points to the Engine's configuration file. This method must be called before all other methods.
To shutdown the Engine, the OnixS::FIX::Engine::shutdown method must be used.
Begin shutdown outside session callbacks and finish or discard deferred application work first; see Deferred Processing and Shutdown. Keep session listeners alive until their callbacks have finished.
The good practice is to shut down the whole application in the following order:
For a restart that continues existing sessions, follow Normal restart: continue the same session to preserve sequence numbers and storage files. Storage persistence and flush limitations are described in Write completion and replay.
The following example demonstrates the Engine's initialization and shutdown: