I\'ve been reading some Java socket code snippet and fonund out a fact that in socket communication, to send messages in sequence, you don\'t have to seperate them by hand,
java.net.Socket works fine, the stream waits readUTF();
java.net.Socket
readUTF();
But when using mina's CumulativeProtocolDecoder, it won't, throws java.io.EOFException
CumulativeProtocolDecoder
java.io.EOFException