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

Best Answer

  • Jirapongse
    Answer ✓

    @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);

Answers