Add Ric Code during runtime

lasf
lasf Newcomer

Hi,

I am trying to consume RIC
Codes from our TREP platform using the EMA framework. During start-up, I can
set the consumer class to subscribe to different RIC codes like this:

consumer.registerClient(reqMsg.serviceName("ServiceName").payload(batchView), appClient)

However, is there any way
that I can add new RIC codes during runtime to the consumer?

Thanks

Best Answer

  • umer.nalla
    umer.nalla LSEG
    Answer ✓

    Hi @lasf

    Once you have created and initialized the OmmConsumer - you can call registerClient as and when your application needs to do so in order to register interest in RICs that you wish to consume.

    In our examples we call registerClient in the main() method as they are just meant to be simple examples that demonstrate basic functionality.