JAVA API回调异常
使用JavaAPI对接路透,回调client都会有哪些异常情况?在回调onRefreshMsg()接口推送的信息中,FiledEntry中load的值为空或者(blank data)时是什么情况?
#product
api
@lingjia.jiang
Thanks for reaching out to us.
You can refer to the
ex330_Login_Streaming
example that demonstrates the opening of the login stream as well as its processing. Having a login stream open is useful for consumer applications willing to get the state of its connectivity to the server.
To handle blank data, please refer to the
ex200_MP_Streaming
example.
if (Data.DataCode.BLANK == fieldEntry.code())
System.out.println(" blank");
Please feel free to reach out if you have any further questions.
Hello
@lingjia.jiang
The EMA Java API reads the configuration file via the following paths:
Firstly, it checks from the working directory
Next, it checks if the application sets to load the file for other locations (see ex111_MP_UserSpecifiedFileCfg as suggested by my colleague)
If the configuration is not available in the location(s) above, it checks from the Application's Classpath resource.
Hope this helps.