We aim to build a resilient, non-interactive provider application based on the C++ EMA Library (RTSDK-2.2.3.E1.linux.rrg). The application should handle potential connection losses and automatically reconnect to one of the available ADH servers.
The automatic reconnect is successfully facilitated by the EMA library. Our application logic is based on the NiProvider 360_MP_ConnectionRecovery example.
However, we encountered a potential issue when a connection loss occurs while the OmmProvider::submit() function is transmitting a message. In this case, the EMA Library raises an OmmInvalidUsageException.
Unfortunately, we cannot determine whether the exception was raised due to a connection issue or another error.
Could you please advise how we can identify if the exception was caused by a connection loss and if it is safe to continue transferring messages after the connection has been reestablished?
Thank you in advance for your support and assistance with this matter.