I use RFA Java v. 8.0.1.L1 and I would like to get data from different services using a single Session.
New posts are disabled while we improve the user experience.
You can browse the site, or for urgent issues, raise a query at MyAccount.
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);