Hi Dragomir, First off, please send your questions to [EMAIL PROTECTED] or [EMAIL PROTECTED]
I think we can change IoSession.getManagedSessions() to return a Map<Integer, IoSession> where its key is the ID of the session (i.e. the result of IoSession.getId()). However, you will still have to maintain the mapping from your custom user ID to MINA session ID, which sounds redundant to me. Is it what you want? Dragomir Tusevljak wrote: > Hi Trustin, > > We conversed before. My name is Dragomir. > > I think MINA is doing great job at session level, but on acceptor level > it misses things like finding session by a key. For example for > inter-server communication you need to be able to ask something like > acceptor.getSessionByUserId(long id). getManagedSessions and iterating > through them is really not good. This is absolute must since not all > users can be on the same server for large applications and they still > need to exchange messages, so server to server is the only way. > > Please let me know would this be in some new release ? -- Trustin Lee - Principal Software Engineer, JBoss, Red Hat -- what we call human nature is actually human habit -- http://gleamynode.net/
signature.asc
Description: OpenPGP digital signature
