Trustin Lee wrote:
Hello Milel,

On 2/2/07, milel <[EMAIL PROTECTED]> wrote:

we are working at a mid-tie-server use own protocol
now we need to forward a message from client to the end-server in
handler.messageReceived(),so i think socketPool is the best choice,but
cant find any example about this in mina's example.
can any one show me any thing about of it ?
thanks very much.


There's no difference in applying a thread model to an IoConnector.  It's
same with IoAcceptor.  Here's an example:

IoConnector connector;
// disable unintuitive ThreadModel property
connector.getDefaultConfig().setThreadModel(ThreadModel.MANUAL);

connector.getFilterChain().addLast(
"threadPool", new ExecutorFilter(Executors.newCachedThreadPool()));

HTH,
Trustin
thanks,i'm trying now.

Reply via email to