Windows service is not running when we call init with username
Dear Team
I tried to call init with username,server id in windows service program .Service is not running after we implemented this .
When i tried calling init without username .I mean step 3 example .It is working fine .Service is running .
It got stuck when we tried calling with user name ,password .
// perform application initialisation
res = myApp.init( username, /* username */
appId, /* application Id */
pos /* position */
);
In Event viewer we got time out error
Best Answer
-
Hi @harik,
As mentioned above and in the documentation it defaults to True. So, you would need to explicitly set to False by adding the config parameter into your config or registry.
I would also advise using flat file for config rather than registry (if you are currently using registry) - in case there are permission issues for the service to access the registry - which is another issue I have encountered previously in relation RFA Windows service deployment.
You can also set the log file to a suitable location and then see if anything is logged when you try to run as a service. If so, share the log file here.
Also, if your service is not running with Admin privileges then you should also disable windowsLoggerEnabled (Default is set to True, the AppLogger will attempt to log events into the Windows Event Log which requires Admin rights). Please refer to the above config guide link for more details. You should also be able to find the config guide in the docs folder of your RFA sdk package.
0
Answers
-
Basically when i tried to add MyClient files it got stuck .Windows service is not running
0 -
Our application windows service based one .We are able to use your api .We are able to do basic initialization successfully .
We did next step by added MyClient.cpp
When I added this file MyClient.cpp (MyClient : public rfa::common::Client this file is responsible for handling all events) in to our source code .Service is not running.
When I removed this file .Service is running .Is there any registry settings required to use this file
Basically we need to test with login credentials to get the price data .
0 -
Hi @harik
I recommend you test as a standalone application to ensure your login, connection etc works before attempting windows Service deployment.
One common issue I have seen with people using RFA app as a service, if the following is not set to False in the RFA config and an error dialog pops up...
RFA_MESSAGEBOX_ENABLED Default value = True. When set to true a message box pops up for internal RFA errors.
You may also need to check if RFA_LOG_FILENAME points to a location that the service can write to.
Please see RFA Config guide for further details.
0 -
RFA_MESSAGEBOX_ENABLED i did not able to see in cfg file
I tried with stand alone and i was able to login successfully
0 -
Apart from the suggestion by Umer to set windowsLoggerEnabled to false.
As far as I know, the running directory of windows service is not the same as when you run the standalone app.
Do you have any try-catch block around the codes that call Session::acquire? it may throw some exception so it looks like freeze when you run it. You can print or log the exception details to see the error.
In some case, there is a problem from RFA unable to find logger message file due to the location of the running directory and we usually suggest client add
Logger\AppLogger\useInternalLogStrings=True
in RFA configuration to avoid the exception from the logger message.
Can you add the useInternalLogStrings=true in RFA config?
0 -
If you want to change the RFA_MESSAGEBOX_ENABLED to false, you need to add the parameter in Windows Registry as follows. As per the document, the parameter is only available on Windows Registry.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 690 Datastream
- 1.4K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 559 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 279 Open PermID
- 45 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 716 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛