<br><div class="gmail_quote">On Tue, Dec 8, 2009 at 10:00 AM, thatsanee <span dir="ltr">&lt;<a href="mailto:martin.rogan.inc@gmail.com">martin.rogan.inc@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
...<br>
I would like to add session like behaviour to my Netty app. In MINA I would<br>
have set my app session in the IoSession attributes. Then it would be<br>
available everywhere via the ubiquitous IoSession.<br>
...<br><br></blockquote></div><br>I think it&#39;s ChannelLocal you&#39;re looking for. It behaves like ThreadLocal and let&#39;s you put user specific attributes on each channel.<br><br>See the release notes of 3.1.0.ALPHA2<br>
<a href="http://www.jboss.org/netty/community.html#nabble-td1611591">http://www.jboss.org/netty/community.html#nabble-td1611591</a><br>and the JavaDoc for ChannelLocal<br><a href="http://www.jboss.org/file-access/default/members/netty/freezone/api/3.1/org/jboss/netty/channel/ChannelLocal.html">http://www.jboss.org/file-access/default/members/netty/freezone/api/3.1/org/jboss/netty/channel/ChannelLocal.html</a><br>
<br>--<br>Carl<br>