You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Samuel Doyle <sa...@gmail.com> on 2006/12/27 19:39:24 UTC

Question about IoHandlerAdapter

If a session throws an exception and you want to recreate that session
should you create another instance of the IoHandlerAdapter? I was under the
impression that shouldn't need to but would like to be sure.

Thanks, S.D.

Re: Question about IoHandlerAdapter

Posted by Trustin Lee <tr...@gmail.com>.
On 12/28/06, Samuel Doyle <sa...@gmail.com> wrote:
>
> If a session throws an exception and you want to recreate that session
> should you create another instance of the IoHandlerAdapter? I was under
> the
> impression that shouldn't need to but would like to be sure.


You don't need to create a new handler, but please make sure that you didn't
store any state information as member variables.  You have to store all
state information as session attributes.  If you want to store state
information as member variables, please refer to
org.apache.mina.handler.multiton package.

HTH,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6