Le 12/30/13 12:56 PM, Hardik Kubavat a écrit : > Hii > > acceptor.getFilterChain().addLast("Codec",new ProtocolCodecFilter(new > DecoderCodecFactory(new ProtocolDecoder()))); > acceptor.getFilterChain().addLast("Codec2",new ProtocolCodecFilter(new > DecoderCodecFactory(new ProtocolDecoder2()))); > > > public class DecoderCodecFactory implements ProtocolCodecFactory{ > private CumulativeProtocolDecoder protocolDecoder = null; > > public DecoderCodecFactory(CumulativeProtocolDecoder > protocolDecoder) { > this.protocolDecoder = protocolDecoder; > } > > > @Override > public ProtocolEncoder getEncoder(IoSession is) throws Exception { > throw new UnsupportedOperationException("Not supported yet."); > } > > @Override > public ProtocolDecoder getDecoder(IoSession is) throws Exception { > return protocolDecoder; > } > > } > The second ProtocolDecoder is not executing. What is the output of your first decoder ? If it's not producing IoBuffer, the second decoder won't kick in.
-- Regards, Cordialement, Emmanuel Lécharny www.iktek.com