question

Upvotes
Accepted
2 0 0 2

Add Ric Code during runtime

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

elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-apirics
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
23.5k 84 10 22

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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.