You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using spring-amqp with spring-rabbit in a batch. I used <rabbit:connection-factory ... /> in my context in order to declare my ConnectionFactory and all the rest.
When my application is on the way to end, a connection remain active and blocks the process to finish. I read the .close() has not effect on this connection factory and I would like to know what should I do in order to gracefully end it ?
Thx
The text was updated successfully, but these errors were encountered:
Please don't use GitHub issues for questions; use Stack Overflow instead (spring-amqp tag) - GitHub issues are for bugs and feature requests.
If the connection factory is declared in the application context, it's destroy() method will automatically be called when the application context is closed or destroyed.
If you are using a user-created factory (outside of the Spring application context) you can call destroy() or resetConnection() on it.
Hello,
I'm using spring-amqp with spring-rabbit in a batch. I used <rabbit:connection-factory ... /> in my context in order to declare my ConnectionFactory and all the rest.
When my application is on the way to end, a connection remain active and blocks the process to finish. I read the .close() has not effect on this connection factory and I would like to know what should I do in order to gracefully end it ?
Thx
The text was updated successfully, but these errors were encountered: