question

Upvotes
Accepted
2 0 0 1

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 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
20.3k 73 10 20

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea