Thomas Kistel wrote:
Hi,

does anybody know how to add multiple ProtocolCodecFilter to the
FilterChain. Regarding to earlier discussions
(http://www.nabble.com/Re%3A-Why-only-one-ProtocolCodecFilter-per-chain-p110
19097.html) that wasn't possible with MINA 1.x but should be resolved in
MINA 2.0.

I want to implement a protocol stack (i.e. the ISO layer-7 protocols ACSE,
ROSE and CMDISE) with MINA. Therefore I need several Encoders and Decoders
on a protocol stack, each responsible for de/encoding the specific layer.
I'm currently using MINA 2.0M1.

As those protocol are at different layers, you should be able to add one filter for each of them, and stack them in the chain. First will come the ACSE decoder, then the ROSE decoder and then the CMDISE decoder.

String Larson has given an example on how to stack filters.

It would be different if you wanted to select a different protocol depending on the received message.


--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org


Reply via email to