directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trustin Lee (JIRA)" <>
Subject [jira] Commented: (DIRSERVER-740) Re-enable thread pool max size parameter using new MINA executor
Date Wed, 13 Sep 2006 01:15:23 GMT
    [ ] 
Trustin Lee commented on DIRSERVER-740:

Here's the example code:

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.

> Re-enable thread pool max size parameter using new MINA executor
> ----------------------------------------------------------------
>                 Key: DIRSERVER-740
>                 URL:
>             Project: Directory ApacheDS
>          Issue Type: Task
>            Reporter: Alex Karasulu
>         Assigned To: Alex Karasulu
>            Priority: Blocker
>             Fix For: 1.0
> 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.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message