On Nov 6, 2006, at 8:39 PM, Hieu Phan Thanh wrote:
--BEGIN--
socketConfig = new SocketAcceptorConfig();
socketConfig.getFilterChain().addLast("codec",
new ProtocolCodecFilter(new DataMessageProtocolCodecFactory()));
socketConfig.setReuseAddress(true);
set the thread model to manual since you add an ExecutorFilter below
protocolExecutor =
Executors.newFixedThreadPool(DCConf.MaxMinaThreadPool);
socketConfig.getFilterChain().addLast("threadpool",
new ExecutorFilter(protocolExecutor));
add this filter *before* your codec. just do an addFirst here.
Do I miss any thing? Please advice me.
also do protocolExecutor.shutdown(); -pete -- [EMAIL PROTECTED] - http://fotap.org/~osi
smime.p7s
Description: S/MIME cryptographic signature
