camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Quinn Stevenson <>
Subject Re: Camel netty tcp new instance for each client connection
Date Tue, 10 May 2016 16:10:25 GMT
I haven’t tried this myself, but I think you could get the Netty Channel from the exchange
property CamelNettyChannel, and use and attribute on the channel to store your information.

Another option may be to use a map to store some state, and use the CamelNettyRemoteAddress
header as the key for your information.  You’d have to figure out when to invalidate the
information in the map though (i.e. timeout, some close message, etc)

> On May 10, 2016, at 6:28 AM, souciance <> wrote:
> Hello,
> I have a scenario where in a Camel route I have a from ("netty4:tcp") which
> listens on a ip:port. Clients can connect to it and send string messages.
> The first message each client sends identifies who they are. Subsequent
> messages are normal payload. However the backend system needs the identifier
> each time.
> My question is, how is it possible to identify when a client connections to
> the route and have a "seperate pipeline" or session for that particular
> client sending messages, and a new pipeline or session when another client
> starts connection? Is this possible?
> Thanks
> Best
> Souciance
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

View raw message