Hi Team,
I am using EMA api and need to supply multiple hosts for failover
As per article https://developers.refinitiv.com/en/article-catalog/article/elektron-message-api-ema-configuration-overview, I should use channel sets for definiing multiple channels for single consumer.
I am using programmatic way to OMMConsumerConfig as per example ex421_MP_ProgrammaticCfg.java.
However, I could not find channelSet configuration equivalent in programmtic api.
Suppose i create two channels : channel1 , channel 2
innerMap.add(EmaFactory.createMapEntry().keyAscii( "Channel_1", MapEntry.MapAction.ADD, innerElementList));
innerMap.add(EmaFactory.createMapEntry().keyAscii( "Channel_2", MapEntry.MapAction.ADD, innerElementList));
a) How i specify multiple set of for single consumer in below line:
innerElementList.add(EmaFactory.createElementEntry().ascii( "Channel", "Channel_1" ));
Should it be something like this :
innerElementList.add(EmaFactory.createElementEntry().ascii( "Channel", "Channel_1, Channel_2" ));
b) I am assuming that EMA api will take care of all failover scenarios Or I need to specify some configuration while sending Request for any RIC.
c) How I can specify operationModel , position, applicationId, userId and password If i am using programmtic way:
Is the below code correct:
EmaFactory.createOmmConsumerConfig().config( createProgramaticConfig());
config.position(trepConnectionConfig.getPosition());
config.applicationId(trepConnectionConfig.getApplicationId());
config.username(trepConnectionConfig.getDacsUserName());
config.password(trepConnectionConfig.getDacsPassword());
config.operationModel(trepConnectionConfig.getOperationModel());
d) Could you please post the link for EMAConfigOptions - what each parameter meant?
Regards
Rinki