question

Upvotes
Accepted
7 1 3 3

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));
elektronrefinitiv-realtimeelektron-sdkema-apirrtrfaelektron-message-api
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.

The given source code is EMA so move the question to Elektron/EMA forum.

Upvotes
Accepted
11.3k 25 9 14

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

Upvote
9.6k 10 7 7

Hello @Todd

Apart from file configuration, you can refer to example421__MarketPrice__ProgrammaticConfig which shows creation and usage of the programmatic configuration feature of EMA.

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.

Upvote
25.3k 87 12 25

Hi @Todd

You may also find the following article on EMA Config useful

https://developers.refinitiv.com/article/elektron-message-api-ema-configuration-overview

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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.