Emmanuel Lecharny <elecharny@...> writes:
> 
> If the server has sent a message, you'll get it. It's just a matter of 
> handling the messageReceived event in your handler. You don't have to 
> 'read it'. Just process it when it arrives.
> 

Thanks for the reply:
But the issue is in around 4 out of 10 times I dont recieve any message 
in the sessionHandler messageReceived i.e I only recieve the events:
1) exceptionCaught & followed by 
2) sessionClosed. 

For the rest 6 times I do recieve the events in expected series: 
1)Reject Reason message in messageReceived 
2)exceptionCaught 
3)sessionClosed

I can't digest the server doing something randomly... I mean sending a reject
reason 5 times and doing otherwise the rest of the time. It has to be some
configuration at MINA which is treating the exception caught or session closed
event with a high priority and ignoring the pending message in the data queue.
or some TCP settings.




Reply via email to