I was doing the flip on the buffer. 
I debugged the code, but I could not see the calls to messageSent () method(s) 
at all. I was calling the session.write(Object message) method to respond back 
to the server from the client.
Could it be that the client when responds to the server the response is sent to 
the duplicated port  (not the actual port where server is listening) ? and that 
is causing this issue.

Vikram





________________________________
From: Emmanuel Lécharny <[email protected]>
To: [email protected]
Sent: Thu, June 3, 2010 10:50:45 AM
Subject: Re: How to write from Mina-Acceptor based server to a client session?

On 6/3/10 7:42 PM, vikram nagpurkar wrote:
> I tried that, the message is written to the Client. The client is coded in 
> Mina as well (NioConnector); it's messageReceived() gets called as well. When 
> the connector based client responds by writing back into the session the 
> message does not get passed to the acceptor based server; even the encoder's 
> encode() method is not getting called. What am I missing?
>    
Maybe you are not writing anything onto the session (ie the buffer is empty 
*or* you forgot to flip it before calling the session.write( buf ) ) ?

-- Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com

Reply via email to