
|
If you were logged in you would be able to see more operations.
|
|
|
| Resolution Date: |
13/Sep/06 03:24 AM
|
|
Looks like there's no more ThreadPoolFilter in MINA and an Executor is used instead. I need to figure out from Trustin just how to set the max thread pool size now. I had to comment out some code in the ServerContextFactory on line 111 which needs to be re-enabled to allow for thread pool size configuration settings to hold.
|
|
Description
|
Looks like there's no more ThreadPoolFilter in MINA and an Executor is used instead. I need to figure out from Trustin just how to set the max thread pool size now. I had to comment out some code in the ServerContextFactory on line 111 which needs to be re-enabled to allow for thread pool size configuration settings to hold. |
Show » |
|
ThreadPoolExecutor executor = new ThreadPoolExecutor();
// configure the executor here
...
SocketAcceptorConfig cfg = new SocketAcceptorConfig();
...
ExecutorThreadModel threadModel = ExecutorThreadModel.getInstance("LDAP");
threadModel.setExecutor( executor );
cfg.setThreadModel( threadModel );
...
acceptor.bind(new InetSocketAddress(port), handler, cfg);
You don't need to add any ExecutorFilter by yourself.