On 10/30/07, paul bryant <[EMAIL PROTECTED]> wrote:
> One last question if may is there away of avoiding a "if else" tree in the
> SessionHandler.
>
> if (message instanceof Msg1)
> {
> }
> else
> if (message instanceof Msg2)
> {
> }
> else
> And so on

Please take a look into the org.apache.mina.handler.demux package.
You can register an individual handler per message type using
DemuxingIoHandler.

> Thanks for the support

No problem.  I am glad that you became a user of MINA, and I would
like to hear your feed back anytime.

HTH,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Reply via email to