Hi,

I have a protocol with multiple MessageDecoders and the decoders have
no state. The decodable method is purely used to figure out if the
message is decodable and the actual work is done in decode. The
documentation does not mention if I have to reset the ByteBuffer in
the decodable method after I'm done with it.

I believe I have to as I'm seeing some very weird behavior if I don't.
An another question that comes up is if the decoders share the same
ByteBuffer instance or rather if MINA takes care of resetting the
ByteBuffer positions before passing it to the next MessageDecoder?

Thanks
James

Reply via email to