You will have to forgive me as im only a junior java developer but do
i need to have this code declared in the xml (mina) server we are
developing. Obviously the mina server is going to be dealing with
multiple connections here from various clients therefore, if i declare
the code you specified, do i need to worry about concurrent
connections or any notions of thread reuse/pooling.

I believe the ex developer used the netbeans (threading) profiler
(which is what im developing in) to analyze how many threads were
being created ....would i be wise to do the same anyway following the
code you showed me?

acceptor.getDefaultConfig().setThreadModel(ThreadModel.MANUAL);
acceptor.getFilterChainBuilder().addLast("...", new ExecutorFilter(....));
// Specify a proper Executor or ExecutorService here.


On 1/15/07, Trustin Lee <[EMAIL PROTECTED]> wrote:
On 1/12/07, Julien Vermillard <[EMAIL PROTECTED]> wrote:
>
> Just remove that :
> >
> >         // Create the thread pool
> >         IoThreadPoolFilter threadPool = new IoThreadPoolFilter();
> >         threadPool.start();
> >         addFilter("threadPoolFilter", threadPool);
> The ExecutorFilter will be placed automaticly.


Well, you'd better to do this:

acceptor.getDefaultConfig().setThreadModel(ThreadModel.MANUAL);
acceptor.getFilterChainBuilder().addLast("...", new ExecutorFilter(....));
// Specify a proper Executor or ExecutorService here.

Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6




--
Peter Ellis
Java Developer

Reply via email to