Welcome to the new Spring.io forums!
If this is your first visit, be sure to check out the
by clicking the link above, and for security reasons, use the
forgot password link to reset your password..
You may have to register before you can post: click the register
link above to proceed. To start viewing messages, select the forum that you want to visit
from the selection below.
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).