Take a look at this tutorial: http://mina.apache.org/tutorial-on-protocolcodecfilter.html
Oh, and try to give your question a better description in the subject of your e-mail next time! Jeroen Brattinga On Tue, 2007-12-11 at 20:47 +0800, Michael Qi wrote: > Hello, > I am using mina and try to write a IoHandler and my question is > messageReceived(IoSession session, Object msg) function: > My protocol binary and the msg is Object ! Can convert it to byte > array? Thank you! > > > > > > > HeQi