Hi, have a question about message ordering. I want to insure that messages are received in order by my application.
I'm using mina on the client, as well as on the server, so i want to insure that if the client sends message M1 followed by M2, that the server receives M1 followed by M2; specifically, that the SessionHandler receives calls on the same thread for the same IoSession. The server is a multi-processor box, so i configure the acceptor with N threads, since there may be multiple sessions involved. So if on the client i do (in the same thread): session.write( msg1 ); session.write( msg2 ); Am i correct in assuming that the SessionHandler will receive the messages in order (on the same thread)? There are really 2 questions here: will the mina layer on the client push msg1 through the socket first, then msg2; and then will the server receive them in order. Thx.
