[ 
http://issues.apache.org/jira/browse/DIRMINA-42?page=comments#action_12360660 ] 

Ryan Rhodes commented on DIRMINA-42:
------------------------------------

Speaking for my application, I think MINA needs a Map but that it doesn't need 
an application specific key.

I would like to use MINA to build a MUD server, which is basically an extended 
chat server that exists in a coordinate space.  I implemented a simple chat 
server with MINA for experimenting.

Imagine a user shouts, and you want that to write output to every other user's 
session, but you don't want it to write output to users that are executing a 
character creation workflow and are not actually in the game yet.  Image a user 
says something that should only be output to the users that are standing in the 
room with him.

I'm thinking that all the contexts that a user's commands will execute under 
will be game specific contexts that have their own lists of users associated 
with them, like a room or a set of rooms.  An executing command will navigate 
the object model from the point of the user it is executing under to some 
collection of users that it wants to write output to.

In my case these collections will be the result of database queries so I think 
what I actually need is just to be able to store a handle to a session in the 
database along with the users object, so that when I need to output to a set of 
users, I can fetch the session that goes with the user data in the result of my 
query.  Since there isn't any data associated with the handle I don't think 
there are any database specific issues related to the key.


> SessionManagers should manage list of sessions being managed.
> -------------------------------------------------------------
>
>          Key: DIRMINA-42
>          URL: http://issues.apache.org/jira/browse/DIRMINA-42
>      Project: Directory MINA
>         Type: New Feature
>     Versions: 0.7
>     Reporter: Trustin Lee
>     Assignee: Niklas Therning
>      Fix For: 0.9.1
>  Attachments: DIRMINA-42.zip
>
> Users are maintaining the list of managed sessions in acceptors and 
> connectors.  It will be much better if MINA can handle this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to