4.5.4 Creating a Programmatic Configuration for an IProvider
NOTE: When encoding OMM types, you must follow the OMM data structure and configuration parameter types listed in this document.
To programmatically configure an Enterprise Message API IProvider:
1. To configure an Enterprise Message API directory’s configuration parameters, create a map with the following hierarchy:
2. Call the config method on an OmmIProviderConfig object, and pass the Map (which represents the programmatic OMM structure) as a parameter to the config method.
You can pass in multiple maps, each programmatic configuration being applied to create the application’s active configuration during instantiation of the OmmConsumer or OmmProvider.
NOTE: You must set adminControlDirectory and adminControlDictionary to their default settings (ApiControlEnum) when programmatically configuring:
• A Directory Refresh message published by an IProvider, or
• A Dictionary Refresh message published by an IProvider