The SessionAware interface can be implemented . It has the setSession
method which has serverSession . IoSession can be obtained from it

On Fri, Jul 27, 2012 at 10:47 PM, Emmanuel Lécharny <elecha...@gmail.com>wrote:

> Le 7/27/12 6:01 PM, Sami a écrit :
>
>  The question is how to get the iosession Object. Once we have it we can
>> store it
>> for further use. For example, say we have EchoShell.With each EchoShell we
>> would have an ioSession associated and within EchoShell class I want to
>> use this
>> ioSession object.
>>
>>
>>
>>
>>  The IoSession is available in the IoHandler events :
>
> ...
>     void messageReceived(IoSession session, Object message) throws
> Exception;
> ...
>
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
>
>

Reply via email to