Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11603

Netty4 consumer in clientMode=true doesn't share channel with subsequent netty4 producers using reuseChannel=true

    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);

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              pszuster Pablo Szuster
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: