cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fe...@otego.com>
Subject Re: Configuration of RunnableManager
Date Tue, 06 Mar 2007 10:27:10 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Giacomo Pati schrieb:
> Hi Felix
>
> Felix Knecht wrote:
>> I wonder how to create/add my own configuration for the
>> RunnableManager. At the moment, the given configuration is
>> included in the deployed jar file (having configured 2 pools
>> (default,daemon)). Changing this configuration seems not that
>> easy as I need to 'patch' the existing configuration in the
>> deployed jar file.
>
>> Making configuration easier I'd prefer the the 'New Features for
>> the spring configurator' and introduce a new bean just containing
>> the configuration data for a pool which implementing a specific
>> (helper) interface. Thus everybody can add his own threadpool
>> configuration. The RunnableManager then will create thread pools
>> for all found beans implementing this (helper) interface.
>
> I'd suggest instead of only breaking out the configuration of a
> thread pool, break out the hole thread pool itself into a bean.
> This would reduce the complexity of the RunnableManager and would
> make the ThreadPool beans have a little more responsability than
> just holding config values.
>
> WDYT?
>

This would make things easier for blocks needing just a threadpool
(like the cron block).

On the otherhand its possible, that the RunnableManager must share a
pool with anything else, because all Threadpool beans would be loaded
into the runnable manager. This must be kept in mind when configuring
the pool. Adding an optional flag to the threadpool bean indicating if
the pool can should be used in the RunnableManager could solve this
problem.

Felix

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF7UH+2lZVCB08qHERAp7iAKCmMi1r5CfZmiKcLVXNPRyk7IpSOQCgz0ib
V74UwgrBPhc/wvtl1cdikGQ=
=lY3m
-----END PGP SIGNATURE-----


Mime
View raw message