question

Upvotes
Accepted
5 1 1 3

Get connection related events on client side when connecting/connected to Refinitiv servers

We use Refinitv Elektron SDK API (ema.jar, upa.jar, upaValueAdd.jar version 3.5.0.0) to connect to Refinitiv to get market data.


We are interested in capturing the connection related events on our side when client component (using EMA client libraries) connects to Refinitiv and subscribes to some chain/ric via the EMA client library. We want to know the API which can be used to capture the following types of events:

1) Successful connection events: Event when EMA client library establishes an successful connection with the Refinitiv servers.

2) Disconnect events: Event when EMA client library disconnects from the Refinitiv servers. It can be due to network issues, refinitiv servers goes down etc...

3) Heartbeat events: Events which are periodically published by the EMA client library to show connection status.


Initial connection is established in following way:

OmmConsumerConfig config = EmaFactory.createOmmConsumerConfig();

OmmConsumer consumer = EmaFactory.createOmmConsumer(config.host(server).username(userName).applicationId(applicationId));

elektronrefinitiv-realtimeelektron-sdkema-apirrtelektron-message-api
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.

@hardeepsangha

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

If yes, please click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

-AHS


1 Answer

· Write an Answer
Upvotes
Accepted
79.1k 250 52 74

@hardeepsangha

Refer to this thread, EMA internally handles connection events (Successful, Disconnect, Heartbeat) but it doesn't forward them to the EMA client application.

However, you can retrieve connection and disconnection via the login stream. Please refer to the ex333_Login_Streaming_DomainRep example in the EMA Java package about registering a login stream.

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.