On 9/5/06, Mike Grundvig <[EMAIL PROTECTED]> wrote:
Can you explain the Executor pool tweak or point a link to it? Thanks!
There a mina submodule named 'java5' which has the implementation of the Executor based thread pool. At the moment though, if you want to make use of this in your application, you can patch mina using the patch available in this issue - http://issues.apache.org/jira/browse/DIRMINA-251
From your application, you will need to do something like this -
SocketAcceptorConfig config = new SocketAcceptorConfig(); PooledThreadModel pooledThreadModel = PooledThreadModel.getInstance( threadServiceName ); pooledThreadModel.setThreadPoolFilter( new ThreadPoolFilter( new ExecutorThreadPool( new ThreadPoolExecutor( 21, Integer.MAX_VALUE ,60L, TimeUnit.SECONDS, new SynchronousQueue<Runnable>( true ) ) ) ) ); config.setThreadModel( pooledThreadModel ); HTH, Vinod.
