On Mon, Feb 9, 2009 at 3:09 AM, Stephane Rainville <[email protected]> wrote: > > Hi, > > Architecure and threading questions. > > When exploring java NIO I tried to build worker threads to which I would pass > the request received and the SelectionKey so I would know whom to respond to > when the task completed. > > Unfortunately I noticed that SelectionKey was not thread safe and would > sometimes become null under heavy load. :(
Haven't encountered any issue with MINA based apps under heavy load :-) > > I was wondering if Mina IoSession is thread safe and how it solved the > problem of keeping caller context without depending on the underlying > SelectionKey. MINA is an implementation of Reactor pattern and if looking for specific code, IoAcceptor and its implementation hierarchy shall be of interest to you. > > Thanks > > Stéphane -- thanks ashish Blog: http://www.ashishpaliwal.com/blog My Photo Galleries: http://www.pbase.com/ashishpaliwal
