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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

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

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.