Hi,
the example of String Larson shows that he is using one ProtocolCodecFilter.
Actually I'm asking for using multiple ProtocolCodecFilters or the ability
to add several Encoders and Decoders to one ProtocolCodecFilter as you can
do with DemuxingProtocolCodecFactory.

Implementing an IoFilter for each protocol is relatively effortful.
Additionally, using several IoFilters is may be not the best solution
regarding performance issues. Does anybody has more experiences with that?

Thomas 

-----Ursprüngliche Nachricht-----
Von: Emmanuel Lecharny [mailto:[EMAIL PROTECTED] Im Auftrag von Emmanuel
Lecharny
Gesendet: Freitag, 30. Mai 2008 17:49
An: [email protected]
Betreff: Re: MINA 2.0 with multiple ProtocolCodecFilters

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