[email protected] a écrit :
Hi,
this is my first time that I usa Apache MINA...
I have some peer connect with MINA 2.0.0 M6.
In the IoHandler in the function
public void messageReceived(IoSession session, Object message)
throws Exception {
BasicMessage msg = (BasicMessage) message;
callback.msgReceived(session, msg);
}
I can't do (BasicMessage) cast...
I think the problem is that I insert the TextLineCodecFactory() in fact I'll
receive a string...
If your codec do the conversion from a byte[] to a BasicMessage, then
there is no reason fr you to add a TextLineCodec, as it's pretty sure
that whet you receive is *not* a text stream...