Hello,

 

I'm been trying to make MINA (v0.9) work for my application, but I'm at a loss 
as to how to use it correctly.  I have to use some silly legacy protocol, so 
changing the protocol is not an option.  Basicly, it consists of two layers.  A 
1st layer message encapsulates a 2nd layer message adding some extra 
parameters.  Keep-alive messages and such are also managed at the 1st layer.

 

So I end up with wanting to use an IoFilter to parse the 1st layer messages, 
then have an IoHandler process it (optionally sending keepalive messages and do 
other stuff for layer1), then I want it to go to another IoFilter that parses 
the 2nd layer message and then finally end up in the IoHandler for the 2nd 
layer protocol.  In a way, similar in setup if you had to implement TCP + an 
application protocol.  How can this be done with MINA?  Simply putting the 1st 
layer protocol handler in a filter also?  That doesn't seem to be what's 
intented - having looked at the MINA presentation slides - but will it at least 
work?

 

Cheers,

Henrik Gram

 

Reply via email to