question

Upvotes
Accepted
29 4 7 13

EMA C++ code example to auto re-login in case of Login stream closed

May I have a workable (RTO) EMA C++ code example to auto re-login in case of Login stream closed (abnormal case)?

ema-apirrto
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

Upvotes
Accepted
12.1k 59 39 61

@Frederic

EMA C++ will perform automatic recovery on behalf of the user if there is an issue with the connection and login stream. You should be able to demonstrate this with some of the packaged RTO examples, i.e. 113_MP_SessionMgmt

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.

In the case of login stream closed (e.g., due to the temporary issue of 'authentication' system) and auto recovery (is that the case even the login stream state was turned to 'CLOSED'?), will there be login refresh and status message received by the consumer?
And will the batch subscription be auto subscribed and got some ACK message then?