Hi ,
I am using MINA to implement the server side for an appilcation. The
server gets various kinds of data distinguished based on say a field X. Now
, if the incoming data is of type X
it needs to send data back to the client and when it gets a response for
that data it is supposed to proceed from the point it last left off.
so say this is the messageRecieved API of my IOHAndler for type X
messageReceived(...){
//Part A: Do some transaction processing and send data
session.write(buffer);
// Part B : Some logic to be executed after the resp for the earlier write.
}
So I need data from Part A and the response received after the first
write.Can I add a Listener or a Handler for the response to that write
operation , so that I can kick off the necessary flow? Or can I store the
state in MINA to start from that point.
Thanks,
--
Tasneem Yusuf
Face the sun and the shadow will fall behind u.