question

Upvotes
Accepted
20 2 3 7

Using Java EMA API, I wonder if there is a way to tell the ADS server to send only images instead of the delta for each record?

#technologyema-apijava
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.

1 Answer

· Write an Answer
Upvotes
Accepted
25.1k 57 17 14

Hello @AMofidy-Rouhi

Do you mean you want only a Refresh Response (IMAGE) message? If so, the EMA Java API supports snapshot requests by setting the ReqMsg's interestAfterRefresh property to false.

Example:

consumer.registerClient(reqMsg.serviceName("DIRECT_FEED").name("IBM.N").interestAfterRefresh(false), appClient);

You can find more detail in the EMA Java example application ex102_MP_Snapshot in the SDK package.

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.

@wasin.w Many thanks for your quick reply. Very helpful.

cheers,

Ali

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.