question

Upvotes
Accepted
129 6 14 23

Can RFA Java application connects to services hosted on a different machine/port from a single Session?

I use RFA Java v. 8.0.1.L1 and I would like to get data from different services using a single Session.

treprfarfa-apiOMM
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
9.5k 10 5 7

Hello @Akechi Sato

A single RFA Session can connect to multiple connections. You can specify multiple connections in connectionList configuration of Session. Each connection is separated by a comma as an example shown below:

consSession connects to 2 connections, conConnection1 and conConnection2.

Each connection specifies serverList and portNumber to each server IP/host name as the following examples:

conConnection1 connects to ads1 at port 14002 while conConnection2 connects to ads2 at port 14002. ads1 and ads2 provides a different service.

To subscribe a RIC to a proper service, please specify the service’s name to the service providing data of the RIC in a request message. For example: if a RIC named TRI.N is provided by a service named Service1, the source code to set the service’s name and the RIC should be:

…
// ommmsg is an instance of com.reuters.rfa.omm.OMMMsg class 
// set to request RIC named TRI.N to the service named Service1
ommmsg.setAttribInfo("Service1", "TRI.N", RDMInstrument.NameType.RIC);
// Set the message into interest spec
ommItemIntSpec.setMsg(ommmsg);
//subscribe the RIC to the specified service
Handle itemHandle = _mainApp.getOMMConsumer().registerClient(_mainApp.getEventQueue(),ommItemIntSpec, this, null);

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea