Anton Ovcharenko created CAMEL-16619:
----------------------------------------

             Summary: Producer destroys rabbit channels when returns it back to 
the pool
                 Key: CAMEL-16619
                 URL: https://issues.apache.org/jira/browse/CAMEL-16619
             Project: Camel
          Issue Type: Improvement
          Components: camel-rabbitmq
    Affects Versions: 3.7.4
            Reporter: Anton Ovcharenko


It was noticed that {{org.apache.camel.component.rabbitmq.RabbitMQProducer}} 
uses {{org.apache.commons.pool.impl.GenericObjectPool}} for managing channels 
pool.

This implementation leads to permanent recreation of channels.
 If the producer has {{channelPoolMaxSize}} value more than 8 
({{org.apache.commons.pool.impl.GenericObjectPool#DEFAULT_MAX_IDLE}}) this pool 
destroys channel on returning it to the pool 
({{org.apache.commons.pool.impl.GenericObjectPool#addObjectToPool}}).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to