question

Upvotes
Accepted
1 0 0 0

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.

#technologyjavacontributionsrcc-api
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.

1 Answer

· Write an Answer
Upvote
Accepted
21.4k 56 14 20

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();
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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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