I've been trying to use the MINA API in one of my projects, and have
the following question:

Is it possible to create a custom NioSocketSession when
NioSocketAcceptor accepts a connection from a client? My idea is to
have a sub class of NioSocketSession and some how attach it to the
Acceptor. This subclass would hold the additional information that I
need during the life of the session. I know we can store any custom
attributes in the session, but that could get pretty messy when I need
to store a bunch of information. I looked through the API docs and
code, but did not find a way to do what I want. I apologize if I did
not look hard enough.

NioSocketAcceptor creates a NioSocketSession in its accept method. I
thought of subclassing NioSocketAcceptor and override the accept
method (which is protected), but can't do it because the class is
final. Is there a reason why this class is final and still have
protected methods?

I really could use this piece of functionality if there is a way to do
it with the current release. Any help is greatly appreciated.

Thanks in advance,
Sai

Reply via email to