question

Upvotes
Accepted
1 0 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 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
23k 22 9 14

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

Click below to post an Idea Post Idea