Handler needs a license for successfull execution. If the Handler is not able to find a valid license it will throw an exception at the initialization stage.
OnixS::CME::DropCopy::HandlerSettings structure exposes OnixS::CME::DropCopy::HandlerSettings::licenseStore parameter which allows to instruct the Handler where to look for a valid license. By default, the Handler looks for a license in the current directory for the application which uses the Handler. However, by using noted parameter, it's possible to specify another folder anywhere on filesystem.
Following example demostrates how supply license to the Handler:
using namespace OnixS::CME::DropCopy; // Parameters for one-time initialization. InitializationSettings initSettings; // Where to store Handler and FIX Engine logs. initSettings.logDirectory = "logs"; // The folder in which the license is stored. initSettings.licenseStore = "../../license"; // File in which FIX dialect for CME is stored. initSettings.fixDialectDescriptionFile = "CmeDropCopyFixDialect.xml"; // Initializes all Handler services explicitly. initialize (initSettings);