Is there a way to specify RICs to registerClient(subscribe) to via the EmaConfig.xml file?

For example in AppClient portion of the basic Consumer.cpp app I've simply used two EmaString variables (ricCode and ricCode2) to be used as arguments in simply registering(subscribing) to two RICs which I took from the command line:

try {

AppClient client; OmmConsumer consumer(OmmConsumerConfig().host(hostAndPort).username(user)); consumer.registerClient(ReqMsg().serviceName("ELEKTRON_DD").name(ricCode), client); consumer.registerClient(ReqMsg().serviceName("ELEKTRON_DD").name(ricCode2), client); sleep(60000);// API calls onRefreshMsg(), onUpdateMsg(), or onStatusMsg()

}

Is there a way which already exist where I can specify which RICs I want to subscribe to in the EmaConfig.xml file?

Best Answer

  • may.du
    Answer ✓

    Existing EMA releases don't support this kind of functionality.