question

Upvotes
Accepted
20 2 3 6

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?

ema-apijava#technology
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

Upvotes
Accepted
17.5k 35 12 12

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