On Jun 7, 2007, at 9:11 AM, ravinder singh wrote:
I am using MINA 1.1 to write a client-server application but struck with
some message issues. The problem is as follows:

A client connects to my server and sends a message to it, then,
messageReceived of myHandler class (which extends IoHandlerAdapter)
should get called, this is working fine. Now suppose I invoke
Thread.sleep(6000)
method in messageReceived() and in the meantime if the
same client sends another message, then I want my messageRecevied method to
be get called, but this is not the case, it waits for the
completion of messageReceived method. Actually there can be some real-time
scenario  in which  the call to this method may never return.

So, just want to know if there's some workaround of this problem.

Also would like someone to briefly explain all the configurable parameters
and where to use them, actually the documentation is not very
clear for this, and the only thing i know is thread-pool.

If you want parallel processing of messages from the same connected client, don't use the ExecutorFilter. It serializes messages from the same client.

-pete


--
[EMAIL PROTECTED] - http://fotap.org/~osi



Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to