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.
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,
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.