Thanks, I will try to implement this. -----Original Message----- From: Emmanuel Lécharny [mailto:elecha...@gmail.com] Sent: Monday, August 27, 2012 7:42 PM To: users@mina.apache.org Subject: Re: Custom Session Handling in MINA
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