Many thanks Emmanuel. Y.
________________________________ From: Emmanuel Lecharny <[email protected]> To: [email protected] Sent: Tuesday, 16 June, 2009 15:49:33 Subject: Re: Clarification on use of IOBuffer Yasdnil Zbib wrote: > Hi > > I am just starting to get to grips with MINA 2.0, and have a question about > the use of IOBuffer, which I hope someone can help me with. > Apologies up front for the newbie status of this: > > When a ProtocolDecoder recieves an IOBuffer to decode I have read that my > incoming message may not have been fully written, > and it is up to the decoder to handle this, druing the translation to my POJO. > right > But, if my message has been fully written - is the buffer likely tohave > another message in it ? > absolutely > For example: say the IOBuffer is 650 bytes in length (and assume > non-auto-expanding). > My inbound message is 300 bytes. > > Once I have read the 300 bytes and converted to a POJO - will I ever see a > second message in the IOBuffer, following on ? > you may have another message. -- -- cordialement, regards, Emmanuel Lécharny www.iktek.com directory.apache.org Send instant messages to your online friends http://uk.messenger.yahoo.com
