Hi,
would be a great thing at all. In the past we tried to work with
getManagedSessions too, but it made the things so slow, that we had to
implement our own caching solution between key and session. If MINA
would provide a ready-to-use solution here, this would be great. When do
you think such feature will be implemented?
Best Regards
Michael
"이희승 (Trustin Lee) <[EMAIL PROTECTED]>" schrieb:
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 ?