Hi All,

I am using Mina version 1.0.9 and developed a routing server. The server has
IoAcceptors for each protocol it supports and uses IoConnectors to forward
the request to the actual service.

Each acceptor and connector uses its own thread pool. The same code is given
below.

I am using Executors.newFixedThreadPool.

ExecutorService filterExecutor =
Executors.newFixedThreadPool(getThreadPool());
ExecutorService ioExecutor = Executors.newFixedThreadPool(getThreadPool());

getFilterChain().addFirst("ExecutorFilter", new
ExecutorFilter(filterExecutor));
IoAcceptor acceptor = new SocketAcceptor(getProcessorCount(), ioExecutor);

We are supporting 5 protocols today and which means I have started 5
acceptors each with its own fixed thread pool.

I am planning to use one Executors.newCachedThreadPool().

Do you see any issues with this approach?

Regards,
Jana
-- 
www.vshareride.com
www.pragmaticinvesting.com
www.younag.com

Reply via email to