On 6/1/10 8:12 PM, vikram nagpurkar wrote:
I am writing a Mina based Asynchronous server application. For one of the use 
cases I need the server to send message(s) to one of the client sessions. How 
do I select the client session for a specific client?
do I need to make the IoSession object (for that specific client ) available to 
do this or can I use the IoAcceptor object to do this?
You have to keep a track of the <client, session> couple in your server, so that you can do a session.write(). Of course, you can list the sessions managed by the Acceptor.getManagedSessions(), but if you don't have a clue about the session ID, then you are lost (well, you can still iterate through it, but this won't be convenient if you have tens of thousands sessions...)


--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com


Reply via email to