AMQP Connection not closed after using RabbitTemplate
Hi,
I am trying to publish a message from my application and once the message is published I need to dispose the underlying RabbitMQ connection used by the template. I do see this logic already in the finally block of the execute method in RabbitTemplate. They do get invoked after publishing the message, but my the JVM fails to exit and I see a thread holding AMQP Connection @ localhost:5672 potentially causing JVM to not exit.
Is there a way to explicitly close the connection from the client side? I do not see any APIs in RabbitTemplate.
Appreciate any pointers on how this can be handled.
-Arul