RFA Omm Java - ADS warm standby programatic configuration?

In my .NET application configs I can turn on warm standby using a line similar to this

\Connections\Connection_RSSL_ExcelAddIn\serverList = "a-side:14002,b-side:14002"

But how can I get the same warm standby effect in a Java application?

OmmConsumerConfig config = EmaFactory.createOmmConsumerConfig();
reutersConsumer = EmaFactory.createOmmConsumer(config.host(host).username(username));

Best Answer

  • Hi @Todd,

    The Java application code you provided should be Elektron Message API (EMA). The API doesn't support WarmStandby: API based. For more information, please refer to section 2.4 of API Concept Guide.

    Anyway, the serverList parameter used in your RFA application provides the failover functionality to the next server in the list. The Failover only occurs when the connection to a connected server breaks only. If you want this functionality in your EMA Java application, you can configure the ChannelSet parameter providing similar connection failover functionality to the serverList parameter.

    Below is the sample of configuration for EmaConfig,xml. To use EmaConfg.xml, please see the example110__MarketPrice__FileConfig example.

    <ConsumerGroup>
    <ConsumerList>
    <Consumer>
    <Name value="Consumer_1"/>
    <ChannelSet value="Channel_1, Channel_2"/>
    </Consumer>
    </ConsumerList>
    </ConsumerGroup>
    <ChannelGroup>
    <ChannelList>
    <Channel>
    <Name value="Channel_1"/>
    <ChannelType value="ChannelType::RSSL_SOCKET"/>
    <Host value="a-side"/>
    <Port value="14002"/>
    </Channel>
    <Channel>
    <Name value="Channel_2"/>
    <ChannelType value="ChannelType::RSSL_SOCKET"/>
    <Host value="b-side"/>
    <Port value="14002"/>
    </Channel>

Answers