Michael Bauroth wrote:
> Niklas Therning wrote:
> 
>> No it can still be used. In fact, if you don't set a ThreadModel
>> yourself a ThreadPoolFilter will be used by default. So the example uses
>> a ThreadPoolFilter.
>>
>> /Niklas
> 
> 
> Good to know. When this happens, then I've misunderstood the
> documention. There I've found for high througput / CPU-intensive jobs
> some schematics, which made use of ThreadPoolFilters. So I've inserted
> in my code such filters too:
> 
> addThreadPool( tChain );
> ...
> addDeviceProtocolCodec( tChain );
> ...
> addThreadPool( tChain );
> 
> ???

The ThreadModel stuff was introduced quite recently so the docs may be
outdated. By default a PooledThreadModel will be used when you use the
Acceptors/Connectors which come with MINA. PooledThreadModel will add a
ThreadPoolFilter to the beginning of the filter chain for each new
session created. Of course, if necessary you can add additional
ThreadPoolFilters later in your filter chain (like your second call to
addThreadPool).

If you find errors in the docs please add an issue to JIRA
(http://issues.apache.org/jira/browse/DIRMINA) and we'll take care of it.

Thanks!
Niklas

Reply via email to