I got a trial on Elektron Connect APIs/SDK, but there is an exception occurred as below:
Dec 10, 2019 3:08:54 PM com.thomsonreuters.ema.access.ChannelCallbackClient reactorChannelEventCallback
warning: loggerMsg
ClientName: ChannelCallbackClient
Severity: Warning
Text: Received ChannelDownReconnecting event on channel Channel
RsslReactor Channel is null
Error Id 0
Internal sysError 0
Error Location Reactor.processWorkerEvent
Error text Reconnection failed: java.nio.channels.UnresolvedAddressException
loggerMsgEnd
and main code as below, I think the problem should on: config.host("elektron:14002").username("test"), reqMsg.serviceName("ELEKTRON_AD").name("IBM.N"), any help?
public class Consumer
{
public static void main(String[] args)
{
OmmConsumer consumer = null;
try
{
AppClient appClient = new AppClient();
OmmConsumerConfig config = EmaFactory.createOmmConsumerConfig();
consumer = EmaFactory.createOmmConsumer(config.host("elektron:14002").username("test"));
ReqMsg reqMsg = EmaFactory.createReqMsg();
consumer.registerClient(reqMsg.serviceName("ELEKTRON_AD").name("IBM.N").interestAfterRefresh(false), appClient);
Thread.sleep(60000); // API calls onRefreshMsg(), onUpdateMsg() and onStatusMsg()
}
catch (InterruptedException | OmmException excp)
{
System.out.println(excp.getMessage());
}
finally
{
if (consumer != null) consumer.uninitialize();
}
}
}