How to close connection of microservices which has pulsar consumer code deployed on tomcat

Viewed 10

I have a microservices which consumes pulsar topics. When I stop the microservices which is deployed on tomcat the connection with pulsar consumer is not getting closed. This is the error:

org.apache.pulsar.client.api.PulsarClientException$ConsumerBusyException: Exclusive consumer is already connected

when I run microservices as standalone jar it works perfectly fine. when I stop the jar application connection closes gracefully.

0 Answers
Related