Guys,
Firstly, my thanks to all fo you guys to comeup with a good project like MINA.
Iam a new to this (and new to java as well), but coming from C++ background, i
could see that most of the networking aspects are tackled in MINA.
I have a query to you guys:
I wrote a simple MINA client that connects an echo server.
One weird thing i notice is, (for some messages) the MINA logs shows the
received message log prior to the sent message log.
Could you please suggest on how to avoid this ? Meaning, i would like to see
the messages logged in actual sequence.
This might be critical for me, because, our logs will be parsed to replay all
the messages in sequence, for troubleshooting.
snapshot of my log:
24-Apr-2010 09:51:12 org.apache.mina.filter.logging.LoggingFilter log
INFO: RECEIVED: SocketServer repsonded at Sat Apr 24 09:51:12 IST 2010 774:Test
Message Header
This is the body of message:
24-Apr-2010 09:51:12 org.apache.mina.filter.logging.LoggingFilter log
INFO: SENT: 774:Test Message Header
This is the body of message:
Sathyanarayan Vaidyanathan
RBS Global Banking & Markets
Unitech Business Park, Tower A, Block F, South City, Phase-1, Gurgaon-122001
***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312.
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
Authorised and regulated by the Financial Services Authority. The
Royal Bank of Scotland N.V. is authorised and regulated by the
De Nederlandsche Bank and has its seat at Amsterdam, the
Netherlands, and is registered in the Commercial Register under
number 33002587. Registered Office: Gustav Mahlerlaan 10,
Amsterdam, The Netherlands. The Royal Bank of Scotland N.V. and
The Royal Bank of Scotland plc are authorised to act as agent for each
other in certain jurisdictions.
This e-mail message is confidential and for use by the addressee only.
If the message is received by anyone other than the addressee, please
return the message to the sender by replying to it and then delete the
message from your computer. Internet e-mails are not necessarily
secure. The Royal Bank of Scotland plc and The Royal Bank of Scotland
N.V. including its affiliates ("RBS group") does not accept responsibility
for changes made to this message after it was sent.
Whilst all reasonable care has been taken to avoid the transmission of
viruses, it is the responsibility of the recipient to ensure that the onward
transmission, opening or use of this message and any attachments will
not adversely affect its systems or data. No responsibility is accepted
by the RBS group in this regard and the recipient should carry out such
virus and other checks as it considers appropriate.
Visit our website at www.rbs.com
***********************************************************************************