NettyProducer with user defined client pipeline factory
--------------------------------------------------------
Key: CAMEL-4960
URL: https://issues.apache.org/jira/browse/CAMEL-4960
Project: Camel
Issue Type: Bug
Components: camel-netty
Affects Versions: 2.8.1
Environment: Windows 7
Reporter: Dmitri Zavrid
If user defined client pipeline factory is configured, Netty Producer shares
the same instance of ClientPipelineFactory for all created connections. See
code below:
configuration.getClientPipelineFactory().setProducer(this);
configuration.getClientPipelineFactory().setExchange(exchange);
configuration.getClientPipelineFactory().setCallback(callback);
clientPipeline = configuration.getClientPipelineFactory().getPipeline();
Which can cause an issue in multithreaded environment. Maybe it is better to
create user defined client pipeline factory for each connection as it is done
with DefaultClientPipelineFactory?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira