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.
For a deeper look into our Elektron API, look into:
Overview | Quickstart | Documentation | Downloads | Tutorials | Articles
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.
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
Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,
AHS
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.