How to check contribution and disconnect from channel in RCC

Hi, I'm using RCC on a java source code using spring boot microservice. the version of framework is : com.refinitiv.ema 3.6.7.3 I am using 2 java threads to handle Connexion and contribution. i have two questions plz :

1- How can i check if the contribution is done or not (to return a response with rest api).

2- How to disconnect from api when the contribution is done.

Best Answer

  • Gurpreet
    Answer ✓

    Hi @z.jaai,

    When you contribute data, your application would get a ACK/NACK message from the system if the contribution succeeded or failed. Make sure you check for success in the onAckMsg method of OmmConsumerClient.

    public void onAckMsg(AckMsg ackMsg, OmmConsumerEvent consumerEvent)

    To disconnect from the server, you can just uninitialize the OMM Consumer:

    consumer.uninitialize();