question

Upvotes
Accepted
1 0 0 5

Failover when using EMA Java

Hello,

I am using EMA Java and now I need to implement failover, I understand that I need to use ChannelSets, but I can't find how to use them. Could someone please explain how I can add another server to use failover?

As explained in the sample code, I'm using the following line to provide the server details:

consumer  = EmaFactory.createOmmConsumer(EmaFactory.createOmmConsumerConfig().host("localhost:14002").username("user"));


is there another factory that would accept a channelset?


Thanks very much in advance.



elektronrefinitiv-realtimeelektron-sdkema-apirrtelektron-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.

@tdlc

Thank you for your participation in the forum. Are any of the replies below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply that best answers your question. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

-AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

Upvotes
Accepted
25.3k 87 12 25

Hi @tdlc

Please refer to my article on EMA Config which has a section on ChannelSets

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

You can specify the ChannelSet in the EMAConfig.xml flat file. If you are not using a config file, you can use Programmatic Config to create a ChannelSet based config within your code.

Programmatic config is demonstrated in example example421__MarketPrice__ProgrammaticConfig. Note that the example does not include a ChannelSet - but you would replicate the structure described in the article withing your code.



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.

Upvotes
1 0 0 5

I'll try that, thank you!

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.