Your wish accomplished:
https://issues.apache.org/jira/browse/DIRMINA-582
On Sun, 20 Apr 2008 20:21:35 +0900, Dragomir Tusevljak
<[EMAIL PROTECTED]> wrote:
Hi Trustin. This would work for sure. I think acceptor should be treated
more as the application object in servlet architecture where there you
have application scope attributes events and so on.
I will submit my further questions to [EMAIL PROTECTED]
Thanks a lot.
Dragomir
-----Original Message-----
From: "이희승 (Trustin Lee) [mailto:[EMAIL PROTECTED]
Sent: April-20-08 1:06 AM
To: ASF MINA Developers
Cc: Dragomir Tusevljak
Subject: Re: A big MINA question
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/
--
Trustin Lee - Principal Software Engineer, JBoss, Red Hat
--
what we call human nature is actually human habit
--
http://gleamynode.net/