camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CAMEL-7054) CamelNetty - No way to get ChannelGroup
Date Sun, 24 Jan 2016 16:30:39 GMT


ASF GitHub Bot commented on CAMEL-7054:

GitHub user lburgazzoli opened a pull request:

    CAMEL-7054 - CamelNetty - No way to get ChannelGroup


You can merge this pull request into a Git repository by running:

    $ git pull CAMEL-7054

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #796
commit 58b0f8d635fe990273d1778e3d3ecf2e08313f7e
Author: lburgazzoli <>
Date:   2016-01-24T15:41:45Z

    CAMEL-7054 - CamelNetty - No way to get ChannelGroup


> CamelNetty - No way to get ChannelGroup
> ---------------------------------------
>                 Key: CAMEL-7054
>                 URL:
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-netty4
>    Affects Versions: 2.12.0, 2.12.1, 2.12.2
>            Reporter: Matthew McMahon
>            Priority: Trivial
>             Fix For: Future
> My use case is that I need to create a custom ServerPipelineFactory, and also require
access to the ChannelGroup so that I can know when a new channel is being added and when it
is removed. 
> I also sometimes use the channelGroup to send a message to all clients. 
> In 2.11.1 it was easy to get access to the ChannelGroup through the NettyConsumer. 
> However with the 2.12.0 restructure this has been hidden behind the NettyServerBootstrapFactory
> To get around it for now, I looked at implementing my own NettyServerBootstrapFactory
class, but I could not work out how to do that and also use a custom ServerPipelineFactory.
Therefore the solution I came up with for now is Reflection!
> Basically, I am wondering is it possible to modify the NettyServerBootstrapFactory interface
so that the addChannel and removeChannel methods return the boolean from the channelGroup
calls. And either provide a getter for the channelGroup, or add a writeAllChannels (bulk write)
method interface that does the write method on the channelGroup? 

This message was sent by Atlassian JIRA

View raw message