On 2/8/11 2:03 PM, Francis ANDRE wrote:
Hi Emmanuel
I would like to use the latest version of Mina i.e Mina 2.0 if possible and I
do not use any previous version. My application should not get more than 500
clients so the one connection/one session/one blocking thread model is fine
from my perspective since it allow to use field members as contextual data.
If you want to attach a session to a single thread, then there is no
real advantage in using NIO. In any case, you can still have a few
threads processing the requests from many clients without having any
trouble with the contextual data : they are associated with the session,
not with the thread processing them.
All in all, you should not taking care of the threads your session is
running on with MINA. Attach you data to the user's session, this is the
way to go.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com