Details
-
Type:
Improvement
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.18.1
-
Fix Version/s: 2.20.0
-
Component/s: camel-netty4
-
Labels:None
-
Estimated Complexity:Unknown
Description
When creating a route that begins with a Netty4 consumer in clientMode=true, it doesn't share its created channel with the following netty4 producers that want to send data using the same channel, using parameter reuseChannel=true.
A simple solution would be to include a parameter for the Netty4 Consumer component, and in ClientModeTCPNettyServerBootstrapFactory add something like this when channel is opened:
exchange.setProperty(NettyConstants.NETTY_CHANNEL, channel);