It's a timing "issue".
Well it's not really an issue except if you want the lines on the
console to be in *strict* chronological order.

1) Main is calling:  session.write(new TennisBall(10));
2) the server receives this message and writes two message to the console
Player-0: RCVD PING (10)
Player-0: SENT PONG (9)
3) the client TennisPlayer is notified by mina that the message has been sent
=> messageSent writes to the console
Player-1: SENT PING (10)
4) the client TennisPlayer receives message from server
=> another line added to the console:
Player-0: RCVD PING (10)

So don't worry, everything is fine :-)

Maarten


On Nov 28, 2007 10:33 AM, gapper <[EMAIL PROTECTED]> wrote:
>
> There are the source files:
>
> Main.java:
> http://www.nabble.com/file/p13988886/Main.java Main.java
>
> TennisBall.java:
> http://www.nabble.com/file/p13988886/TennisBall.java TennisBall.java
>
> TennisPlayer.java:
> http://www.nabble.com/file/p13988886/TennisPlayer.java TennisPlayer.java
> --
> View this message in context: 
> http://www.nabble.com/The-confusing-console-messages-using-the-tennis-example-in-the-mina-1.1.4.zip-tf4887263s16868.html#a13988886
>
> Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.
>
>

Reply via email to