question

Upvotes
Accepted
13 1 0 5

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 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
45.3k 103 44 60

@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
13 1 0 5

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.