On 6/7/10 11:13 AM, Thomas Hecker wrote:
Hi mina-users,
Hi Thomas,
new to mina, I have a problem sending a message. I copied code from
one of our 2.0 tutorials, but the message I try to send via TCP is not
sent. The receiver part works - tested via telnet connection.
I'm wondering, why the IOHandler.messageSent method is never called.
There is no encoder in your client. The client won't be able to
translate a String ( "Test" ) to a byte array (Strings are not very
natural for TCP ;)
Just have a look at the EchoServer sample
(http://svn.apache.org/viewvc/mina/trunk/example/src/main/java/org/apache/mina/example/echoserver/)
to see how to handle this correctly.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com