You can refer to Creating a barebones RFA application in Java to help you set up an API environment to build RFA Java applications. In addition, the RFA Java Dev kit contains examples which will also assist in understanding what is required to build your applications.
Hello @josa
To setup RFAJ Configuration, please refer to Tutorial 2 - Understanding RFA Java Configurations
Thanks @nick.zincone.1 and @Pimchaya.Wongrukun.
I followed the instructions and tried running Tutorial_06 and I could not get Login Successful message. Am running Java 8 example. Is there anything am doing wrong?
****************************************************************************** Begin RFA Java StarterConsumer Program ******************************************************************************Loading config DB from Config File:<../../Config/RFAJava_Config.xml>RFA Version: 8.0.1.E2.all.rrgDec 09, 2016 5:00:58 PM com.reuters.rfa.internal.session.SessionImpl processEventQueueDispatchThreadStartedFINE: com.reuters.rfa.session.myNamespace.consSessionSession initialization: Dispatch thread "myNamespace::consSession Session EventQueueGroup" startedLoginClient: Sending login request...dispatch messages...LoginClient.processEvent: Received Login Response...LoginClient: Received Login Response - MsgType.REFRESH_RESPMESSAGE Msg Type: MsgType.REFRESH_RESP Msg Model Type: LOGIN Indication Flags: REFRESH_COMPLETE Hint Flags: HAS_ATTRIB_INFO | HAS_ITEM_GROUP | HAS_RESP_TYPE_NUM | HAS_STATE State: OPEN, SUSPECT, NONE, "All connections pending" Group: 0000 RespTypeNum: 0 (RespType.SOLICITED) AttribInfo Name: user NameType: 1Dec 09, 2016 5:00:58 PM com.reuters.rfa.internal.session.ConnectionHandler createConnectionsFINE: com.reuters.rfa.session.myNamespace.consSessionSession initialization: acquiring connection "myNamespace::consConnection" (USER_NAME) Attrib ELEMENT_LIST ELEMENT_ENTRY ApplicationId: 256 ELEMENT_ENTRY Position: localhost/josa6540 ELEMENT_ENTRY AllowSuspectData: 1 ELEMENT_ENTRY SingleOpen: 1 ELEMENT_ENTRY SupportBatchRequests: 7 ELEMENT_ENTRY SupportOptimizedPauseResume: 1 ELEMENT_ENTRY SupportPauseResume: 1 ELEMENT_ENTRY SupportViewRequests: 1 ELEMENT_ENTRY SupportEnhancedSymbolList: 1 ELEMENT_ENTRY SupportOMMPost: 1 Payload: Nonedispatch messages...Dec 09, 2016 5:00:58 PM com.reuters.rfa.internal.connection.ConnectionImpl processConnectionStatusOpenReqMsgFINE: com.reuters.rfa.connection.rssl.myNamespace.consConnectionSending CONNECTION_STATUS_MSG, connection name = myNamespace::consConnection, status = { state: DOWN, code: NONE, text: "uninitialized"}dispatch messages...dispatch messages...3 seconds elapsed, class com.reuters.rfa.example.omm.cons.StarterConsumer cleaning up...RWF: 14.1
Thanks,
josa
Hi josa,
There are 2 key items you need to confirm are correct:
I can see from above you are likely using the packaged 'RunConsumer.bat' script which uses the username: 'user'. You may need to change this if your market data environment has permissions enabled. Secondly, confirm your ADS host name, i.e. 'serverList' defined within your RFAJava_Config.xml is correct.
If you are looking to create a market data consumer application in Java and are not restricted to using RFA, I would highly encourage you to consider using the Elektron Message API (EMA).
Hello josa,
You should confirm ADS host/port and login user name if they are correct with:
-Thomson Reuters Account team if you connect to Thomson Reuters Server
or
-Your ADS admin if you connect to your company server
If all are correct:
a) Check if the server andport is available using telnet <server> <port>
b) Check with yournetwork admin if the firewall allows your machine sends/receives messages to/from the server.
Hi @nick.zincone and @Pimchaya.Wongrukun, the problem am having in the first place is that we don't have a company server set up for TREP RFA data. Question is how do we set this up? I have been using my development machine for this hence am having this problem. Could you help please provide info on how to set this up?
The problem am having in the first place is that we don't have a company server set up for TREP RFA data. Question is how do we set this up? I have been using my development machine for this hence am having this problem. Could you help please provide info on how to set this up (including installation files and configurations)?
The overall system that RFA gets data:
a feed -> TREP -> RFA
Now you have RFA but you need a feed and TREP to be able to consume data.
You should contact Account team,Andrew Forman(andrew.forman@thomsonreuters.com) who can provide you with the solution which serve your requirements. e.g. the proper feed, TREP components that you need to install or use Thomson Reuters's TREP.
Thanks @Pimchaya.Wongrukun. Will contact Andrew and let you know if am still having issues setting this up.
Hi @josa,
Alternatively, if your goal is to test connectivity and see data coming through, you may be able to use the interactive Provider example within the RFA package. In general, a Consumer connects to a Provider. In the typical case, when you write an RFA Consumer, you connect into TREP, specifically the ADS component which acts as a Provider of data. So in theory, you can try to build both the Consumer and Interactive Provider examples and wire them up to see data flowing through. Something to consider.