I am trying to run the tutorial source code as posted at https://developers.thomsonreuters.com/elektron/elektron-sdk-java/learning?content=8738&type=learning_material_item
However, I failed to log in and establish connections. The error message is as follows.
Nov 03, 2017 3:39:29 PM com.thomsonreuters.ema.access.ChannelCallbackClient reactorChannelEventCallbackSEVERE: loggerMsg ClientName: ChannelCallbackClient Severity: Error Text: Received ChannelDown event on channel Channel Instance Name EmaConsumer_1 RsslReactor Channel is null Error Id 0 Internal sysError 0 Error Location Reactor.processWorkerEvent Error text Reconnection failed: java.nio.channels.UnresolvedAddressExceptionloggerMsgEnd
Exception thrown: login failed (timed out after waiting 45000 milliseconds) forelektron:14002)
The related codes are as follows.
consumer = EmaFactory.createOmmConsumer( config.host("elektron:14002") .username("user") );
May I know why? I am not clear how to establish a connection using my account. What host should I use? No need to provide password?
You need to change "elektron:14002" to be your TREP/EZD server IP and RSSL port. I suggest you contact your local Market Data team or Thomson Reuters representative for more detail about the TREP server that you can access.