Apache Directory Project - [jira] Commented: (DIRSERVER-740) Re-enable thread pool max size

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > September 2006 > [jira] Commented: (DIRSERVER-740) Re-enable thread pool max size





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Commented: (DIRSERVER-740) Re-enable thread pool max size
Trustin Lee (JIRA)

2006-09-13, 1:11 am

[ http://issues.apache.org/jira/brows...action_12434335 ]

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: http://issues.apache.org/jira/browse/DIRSERVER-740
> 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: http://issues.apache.org/jira/secur...nistrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com