You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Nick_ <ni...@gmail.com> on 2013/08/08 06:36:01 UTC

Creating a new instance of an IoHandler for each connection?

I can't seem to find a way to allow each connection to have it's own handler



--
View this message in context: http://apache-mina.10907.n7.nabble.com/Creating-a-new-instance-of-an-IoHandler-for-each-connection-tp39443.html
Sent from the Apache MINA User Forum mailing list archive at Nabble.com.

Re: Creating a new instance of an IoHandler for each connection?

Posted by Jon <sy...@gmail.com>.
This is against the design. 

You could add this into the source pretty easy and build a custom version of Mina. 

Sent from my iPhone

On Aug 8, 2013, at 12:36 AM, Nick_ <ni...@gmail.com> wrote:

> I can't seem to find a way to allow each connection to have it's own handler
> 
> 
> 
> --
> View this message in context: http://apache-mina.10907.n7.nabble.com/Creating-a-new-instance-of-an-IoHandler-for-each-connection-tp39443.html
> Sent from the Apache MINA User Forum mailing list archive at Nabble.com.

Re: Creating a new instance of an IoHandler for each connection?

Posted by Emmanuel Lecharny <el...@apache.org>.
Le 8 août 2013 09:46, "Nick_" <ni...@gmail.com> a écrit :
>
> I can't seem to find a way to allow each connection to have it's own
handler

Because it makes no sense to do so. The IoHandler is stateless, and is
shared between all the sessions.

Why would you do that ?

>
>
>
> --
> View this message in context:
http://apache-mina.10907.n7.nabble.com/Creating-a-new-instance-of-an-IoHandler-for-each-connection-tp39443.html
> Sent from the Apache MINA User Forum mailing list archive at Nabble.com.