Ema News feed - Auto reconnection not happened

Hi Team,

We are running Ema C++ news component for news feed.

Yesterday the component got disconnected from the server and auto reconnect does not happen.

Please check the logs below,

loggerMsg

TimeStamp: 13:35:43.889

ClientName: Consumer_1_1

Severity: Error

Text: EMA Exception Handler

Application: EMA Application

Process Id: 0x7843

File: Impl/Thread.cpp

Line: 71

Exception occured

loggerMsgEnd

Please help me enabling the auto reconnection.

Thanks,
Thiruppathi S

Best Answer

  • umer.nalla
    Answer ✓

    Hi,

    The limited log output does not suggest a controlled disconnect - it could well be an application level problem.

    If the network connection was lost or if the ADS server shutdown of if a service was down, you would get a more meaningful message explaining the loss, and the API would attempt to recover once the network/server/service was restored.

    Once you do figure out what went wrong, I would recommend you use a ChannelSet - if you are not already doing so. See the EMA config guide for details and also the following post Example ChannelSet config

Answers

  • Hi @umer nalla

    We have added xml trace option in EmaConfig.xml file and found the connection is closed and reconnection not happened.

    XML Trace output:

    <!-- End Message (Channel IPC descriptor = 12) -->

    <!-- rsslCloseChannel Connection closed (Channel IPC descriptor = 12) -->

    Exception Thrown from the application

    loggerMsg

    TimeStamp: 2017/03/24 04:32:47.873

    ClientName: Consumer_1_1

    Severity: Error

    Text: EMA Exception Handler

    Application: EMA Application

    Process Id: 0x5D7F

    File: Impl/Thread.cpp

    Line: 71

    Exception occured

    loggerMsgEnd

    Please help in this.

    Thanks,

    Thiruppathi S