EMA C++ Training Examples : EMA C++ Interactive Provider Examples : 300 Series Examples : 300_MP_Close
 
300_MP_Close
Summary
=======
 
300_MP_Close is an example of an OMM Interactive Provider application
written to the EMA library.
 
This application demonstrates the basic usage of the EMA library in providing
of OMM MarketPrice data to the Advanced Distribution Hub.
 
300_MP_Close illustrates how to create and publish a single OMM
streaming item. This application uses source directory configured in the EmaConfig.xml
file.
 
 
Detailed Description
====================
 
300_MP_Close implements the following high-level steps:
 
+ Instantiates and modifies an OmmIProviderConfig object.
+ Instantiates an OmmProvider object which.
- listens on the port from the EmaConfig.xml file
+ Accepts a login request
+ Processes an item request for MarketPrice domain.
- Creates streaming item (refresh and updates) and publishes them
- Publishes updates 1 per second.
+ Rejects subsequent item requests.
+ Processes an item close request for MarkerPrice domain.
- reset item handle to 0
- stop publishing updates after receiving the item close request.
+ Exits
 
Note: If needed, these and other details may be modified to fit your local
environment. For details on standard configuration, refer to the EMA library
ReadMe.txt file and EMA Configuration Guide.