...ssion?
Iuse RFA Java v. 8.0.1.L1 and I would like to get data from different servicesusing a single Session.
Hello @Akechi Sato
A single RFA Session can connect to multiple connections. You can specifymultiple connections in connectionList configuration of Session. Each connection is separated by a comma as anexample shown below:
consSessionconnects to 2 connections, conConnection1 and conConnection2.
Eachconnection specifies serverList and portNumber to each server IP/host name asthe following examples:
conConnection1connects to ads1 at port 14002 while conConnection2 connects to ads2 at port14002. ads1 and ads2 provides a different service.
Tosubscribe a RIC to a proper service, please specify the service’s name to theservice providing data of the RIC in a request message. Forexample: 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 Service1ommmsg.setAttribInfo("Service1", "TRI.N", RDMInstrument.NameType.RIC);// Set the message into interest specommItemIntSpec.setMsg(ommmsg);//subscribe the RIC to the specified serviceHandle itemHandle = _mainApp.getOMMConsumer().registerClient(_mainApp.getEventQueue(),ommItemIntSpec, this, null);