question

Upvotes
Accepted
1 0 1 1

JAVA API回调异常

使用JavaAPI对接路透,回调client都会有哪些异常情况?在回调onRefreshMsg()接口推送的信息中,FiledEntry中load的值为空或者(blank data)时是什么情况?

#productapi
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

<AHS>

from google translate

What exceptions will occur when the client is called back when JavaAPI is used to connect to Reuters? What happens when the value of load in FiledEntry is empty or (blank data) in the information pushed by the callback onRefreshMsg() interface?

Hello @lingjia.jiang

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,


AHS

@lingjia.jiang

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvote
Accepted
79.1k 250 52 74

@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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

还有个问题,EmaConfig.xml这个文件在Linux环境发布JAVA-Spring项目时,文件路径是什么?应该放在哪里?工程打镜像部署Docker时,此配置文件又应该放在哪里?ema读取此配置文件所取路径是什么?

@lingjia.jiang @

By default, it reads the configuration file from the working directory. However, you can change it. Please refer to the ex111_MP_UserSpecifiedFileCfg example.

Hello @lingjia.jiang

The EMA Java API reads the configuration file via the following paths:

  1. Firstly, it checks from the working directory
  2. Next, it checks if the application sets to load the file for other locations (see ex111_MP_UserSpecifiedFileCfg as suggested by my colleague)
  3. If the configuration is not available in the location(s) above, it checks from the Application's Classpath resource.


Hope this helps.


Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.