Oscar wrote:
hi all-
To simplify the business-side code, I wanna run the messageReceived in the
main thread.
MINA is meant to handle asynchronous communications. If you want to
manage messages synchronously, then use a Socket, and deal with all the
burden of managing the incoming and outgoing bytes in your main thread.
In this case, you don't need MINA at all.
The base idea is that your application is driven by MINA through
handlers, instead of doing the opposite.
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org