Migrating legacy SFC (RTMDS v3) Java client to EMA

dgoloughlin
dgoloughlin Newcomer
edited 11:21AM in EMA

Hi all,

I’m moving an ancient Java app from the SFC API to EMA Java. The local RTMDS v3 host listens on 8101, 14002, and 24002. I was told I can reuse the same DACS user with EMA.

Connecting EMA to 8101 gives:

ChannelDownReconnecting ... Error initializing channel

Connecting EMA to 14002 or 24002 results in connection refused.

What might be the problem? Which port should EMA use in this setup?

(Example trace, user masked)

19:58:13.486 [main] TRACE com.refinitiv.ema.access.OmmConsumerImpl - loggerMsg
    ClientName: LoginCallbackClient
    Severity: Trace
    Text:    RDMLogin request message was populated with this info: 
  LoginRequest: 
  streamId: 1
  userName: ********************
  streaming: true
  nameType: 1
  applicationId: 256
  applicationName: ema
  position: 192.168.68.105/97VC9K3


19:58:13.692 [main] TRACE com.refinitiv.ema.access.OmmConsumerImpl - loggerMsg
    ClientName: ChannelCallbackClient
    Severity: Trace
    Text:    Attempt to connect using 
  1] SOCKET
  Channel name Channel_APAC_1
  Instance Name Consumer_APAC_1_1
  RsslReactor @67427b69
  InterfaceName 
  hostName 146.242.129.225
  port 8101
  CompressionType None
  tcpNodelay true
  reconnectAttemptLimit -1
  reconnectMinDelay 1000 msec
  reconnectMaxDelay 5000 msec
  guaranteedOutputBuffers 5000
  numInputBuffers 10
  sysRecvBufSize 65535
  sysSendBufSize 65535
  connectionPingTimeout 30000 msec
  initializationTimeout 5 sec

19:58:13.822 [main] TRACE com.refinitiv.ema.access.OmmConsumerImpl - loggerMsg
    ClientName: ChannelCallbackClient
    Severity: Trace
    Text:    Received ChannelOpened on channel Channel_APAC_1
  Instance Name Consumer_APAC_1_1

19:58:13.824 [main] TRACE com.refinitiv.ema.access.OmmConsumerImpl - loggerMsg
    ClientName: ChannelCallbackClient
    Severity: Trace
    Text:    Successfully created a Reactor and Channel(s)
   Channel name(s) Channel_APAC_1
  Instance Name Consumer_APAC_1_1

 19:58:14.204 [main] WARN  com.refinitiv.ema.access.OmmConsumerImpl - loggerMsg
    ClientName: ChannelCallbackClient
    Severity: Warning
    Text:    Received ChannelDownReconnecting event on channel Channel_APAC_1
  RsslReactor @67427b69
  RsslChannel @49a64d82
  Error Id 0
  Internal sysError 0
  Error Location Reactor.processWorkerEvent
  Error text Error initializing channel: errorId=-1 text=Error occurred during connection process.

Answers

  • Hello @dgoloughlin

    The EMA API can connect to the OMM Provider (RTDS, ADS, etc) via the RSSL connection (default port is 14002) only. It cannot connect to the SSL connection (port 8101).

    Did your server enable RSSL connection yet?

    According to this log, it shows that you have set the API to connect to the server via port 8101

      Text:    Attempt to connect using 
      1] SOCKET
      Channel name Channel_APAC_1
      Instance Name Consumer_APAC_1_1
      RsslReactor @67427b69
      InterfaceName
      hostName 146.242.129.225
      port 8101

    Could you please share a snippet code and your EmaConfig.xml 's Consumer and Channel configurations?

    Please also give use more detail about your application:

    • EMA Java version
    • Java version
    • OS
    • What is the server?