question

Upvotes
Accepted
15 2 5 10

How to specify multiple ADS services in the Java EMA consumer ?

Hi All,

In my Consumer sample code the ADS service name IDN_RDF is specified as below.

ReqMsg reqMsg = EmaFactory.createReqMsg().serviceName("IDN_RDF").payload(batch);

We have more than one service on the ADS server say DTS and IDB_RDF. We have a list RICs that we get updates from either of two services.

How can I specify both services in my code ? Or should I have a separate thread of each of the service ?

Thanks in advance.

Mani

elektronrefinitiv-realtimeelektron-sdkema-apirrtjavaADS
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.

Upvotes
Accepted
78.1k 246 52 72

@Mani.A

You need to create new requests for each of the services. For example:

ReqMsg reqMsg1 = EmaFactory.createReqMsg().serviceName("DTS").payload(batch);
ReqMsg reqMsg2 = EmaFactory.createReqMsg().serviceName("IDB_RDF").payload(batch);
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.

Upvotes
15 2 5 10

Thanks @jirapongse.phuriphanvichai It worked.

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.

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.