How can I unsubscribe item with the EMA API

wasin.w
wasin.w admin
in EMA

I want to know how to unsubscribe item with the EMA Java API 3.7.1.3.

My code is currently using

consumer  = EmaFactory.createOmmConsumer(EmaFactory.createOmmConsumerConfig().host("ADS:14002").username("DACS_USER"));
consumer.registerClient(EmaFactory.createReqMsg().serviceName("IDN").name("CSCO.O"), appClient);

Tagged:

Comments

  • wasin.w
    wasin.w admin

    Hello

    When you subscribe an item using the registerClient() method, you get a handler which is a reference to that item.

    Then you can use the OmmConsumer.unregister(<handler>) method to unbscribe that data.

  • Well sometimes you register and sometimes unregister.