I just want to apply the Half Sync/Half Async pattern.I thought
ExecutorFilter could help me achieve the target.

Thanks a lot.

On Thu, Mar 12, 2009 at 10:59 PM, Emmanuel Lecharny <[email protected]>wrote:

> 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
>
>
>

Reply via email to