[ http://issues.apache.org/jira/browse/DIRMINA-187?page=comments#action_12370051 ]
Niklas Therning commented on DIRMINA-187: ----------------------------------------- If I would ever want each session to be handled by a seperate handler I would prefer having something like the SingleSessionIoHandler. My own code will be cleaner and easier to understand when the session isn't passed into each and every method. That's why I think something like the new SingleSessionIoHandler interface is needed. I agree with Pete on the third bind()-method. It shouldn't be a seperate method. > Support IoHandler per IoSession (SingleSessionIoHandler) > -------------------------------------------------------- > > Key: DIRMINA-187 > URL: http://issues.apache.org/jira/browse/DIRMINA-187 > Project: Directory MINA > Type: New Feature > Reporter: Simon Raess > Priority: Minor > Attachments: single-session-handler.zip > > Currently, when binding an IoAcceptor a single IoHandler is specified that is > shared among all sessions. This shared IoHandler cannot use instance > variables (without proper synchronization), because it is accessed > concurrently by multiple threads. The handler state has to be stored as > session attributes. However, if there was one IoHandler per IoSession, state > stored in instance variables of the IoHandler could be used safely. > The attached zip file contains an implemented solution (as suggested by > Niklas Therning) for this idea. See the following post in the mailing list > archive for a detailed description: > http://mail-archives.apache.org/mod_mbox/directory-mina-dev/200603.mbox/[EMAIL > PROTECTED] > What do you think? -- 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
