This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
No announcement yet.
spring - rabbitmq when are channels closedPage Title Module
The CachingConnectionFactory caches the connection and (by default) 1 channel; the number of cached channels can be configured but you cannot set it to less than 1. Channels in excess of the cache size are closed when returned to the cache.
If you use the default settings, only one channel will remain open, all the others will be closed when they are returned to the cache. No, you can't close the channel explicitly (although you could dig into the proxy and close the target Channel, but I wouldn't recommend that).