I guess I'm still somewhat confused. If I use each filter independently...
That is, if I only have the ObjectSerializationCodec filter and my app
only sends/receives POJO objects... Everything works right. If I only use
the StreamWriteFilter and my app only sends/receives files... Everything
works right. So, I need to make sure that ObjectSerializationCodec only
deals with POJO and StreamWriterFilter only deals with files. This is
where I'm having an issue... I could add/remove filters from the chain,
but I don't like that option. There should be a way to bypass a filter
when I want to... I.e, if receiving files... Bypass
ObjectSerializationCodec.

On 11/25/11 12:35 PM, "Emmanuel Lécharny" <elecha...@apache.org> wrote:

>On 11/25/11 5:53 PM, Cesar Barria wrote:
>> I thought that's what StreamWriterFilter is supposed to do. This is how
>>I
>> was hoping it would work:
>>
>> FilterChain
>>
>>
>> LoggingFilter
>> ObjectSerializationCodec
>> StreamWriterFilter
>
>You can't. It's not about decoding an Objet *and* a stream, but about
>decoding an Object *or* a Stream.
>
>-- 
>Regards,
>Cordialement,
>Emmanuel Lécharny
>www.iktek.com
>
>


Reply via email to