question

Upvotes
Accepted
2 0 1 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

refinitiv-realtimeelektronelektron-sdkema-apirrtelektron-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

· Write an Answer
Upvotes
Accepted
25.4k 90 13 25

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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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