Le 8/27/12 3:59 PM, Rajiv Kasera a écrit :
This is an external infrastructure not within our control. The way it works is
to use the same socket.
Ok. Too bad :/
Anyway, as you are using one single socket, MINA creates one single
session. You smartly injected some ID in each message, so you can know
where it comes from, now uou need to handle this ID -> user map on the
IoHandler size. The best would be to use a shared HashMap for that.
Store it into the session object. Be aware that you may have more than
one thread using this session instance, if you have added an executor in
your filter chain.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com