Sessions in Netty

Carl Byström cgbystrom at gmail.com
Sat Dec 12 06:49:27 EST 2009


On Tue, Dec 8, 2009 at 10:00 AM, thatsanee <martin.rogan.inc at gmail.com>wrote:

> ...
> I would like to add session like behaviour to my Netty app. In MINA I would
> have set my app session in the IoSession attributes. Then it would be
> available everywhere via the ubiquitous IoSession.
> ...
>
>
I think it's ChannelLocal you're looking for. It behaves like ThreadLocal
and let's you put user specific attributes on each channel.

See the release notes of 3.1.0.ALPHA2
http://www.jboss.org/netty/community.html#nabble-td1611591
and the JavaDoc for ChannelLocal
http://www.jboss.org/file-access/default/members/netty/freezone/api/3.1/org/jboss/netty/channel/ChannelLocal.html

--
Carl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20091212/ce50fd1f/attachment.html 


More information about the netty-users mailing list