question

Upvotes
Accepted
11 1 0 3

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-sdkrrtema-apijavaADS
icon clock
10 |1500

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

Upvotes
Accepted
38.1k 71 35 53

@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 5.0 MiB each and 10.0 MiB total.

Upvotes
11 1 0 3

Thanks @jirapongse.phuriphanvichai It worked.

icon clock
10 |1500

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

Click below to post an Idea Post Idea