Maarten Bosteels wrote:
It's in the javadocs: " doDecode() is invoked repeatedly until it returns
false "
So there is no need to have a loop in your doDecode implementation for
decoding multiple messages.
http://mina.apache.org/report/trunk/apidocs/org/apache/mina/filter/codec/CumulativeProtocolDecoder.html#doDecode(org.apache.mina.core.session.IoSession,%20org.apache.mina.core.buffer.IoBuffer,%20org.apache.mina.filter.codec.ProtocolDecoderOutput)
Maarten
JavaDocs are a bit confusing on the topic, actually.
decode() says: "doDecode() is invoked repeatedly until it returns false"
but doDecode() says: "this method will be invoked again when more data
is cumulated"
So it's a bit contradictory.
DR