Yup... The @Overrides are being called appropriately. I think my problem is here... I just don't know how to fix it. This returns false which I think just indicates not enough buffer data available to decode... So it will call the doDecode method on the ObjecSerializationCodec class again instead of moving on to the StreamWriterFilter class.
@Override protected boolean doDecode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) throws Exception { if (session.getAttribute("state") == SessionState.RECV_FILE || session.getAttribute("state") == SessionState.SEND_FILE) return false; else { return super.doDecode(session, in, out); } } } On the encoder everything appears to be working appropriately: @Override public void encode(IoSession session, Object message, ProtocolEncoderOutput out) throws Exception { if (session.getAttribute("state") == SessionState.RECV_FILE || session.getAttribute("state") == SessionState.SEND_FILE) return; else super.encode(session, message, out); } } On 11/25/11 9:49 AM, "Emmanuel Lécharny" <elecha...@apache.org> wrote: >On 11/25/11 3:41 PM, Cesar Barria wrote: >> I was hoping that these three @Overrides would bypass the serialization >>codec and allow streamwritefilter to deal with the files > >It should, but are you sure that they are called everytime a file is >sent ? Add some logs in your code to be sure. > > >-- >Regards, >Cordialement, >Emmanuel Lécharny >www.iktek.com > >