For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 1 1 5

How to set reconnectAttemptLimit in EMA java api while creating omm consumer?

On passing invalid host.user, connection retrial happnes for 45 seconds and after that time out message gets logged. How to stop connection retrial and capture the actual message.

elektronrefinitiv-realtimeelektron-sdk
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.

Hello @malika.gupta

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 reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

@malika.gupta

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
32.2k 40 11 20

Hello @malika.gupta,

You can configure reconnectAttemptLimit in EMA config, per Channel or ChannelGroup, for example:

<Channel>
<Name value="Channel_2"/>
<ChannelType value="ChannelType::RSSL_SOCKET"/>
<Host value=" localhost "/>
<Port value="14008"/>
<ReconnectAttemptLimit value="10"/>
< XmlTraceToStdout value="1"/>
</Channel>

For additional details and examples, please refer to EMA Java Configuration Guide within SDK, section Channel Group.

Guides

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.