avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Sutic" <leo.su...@inspireinfrastructure.com>
Subject RE: AbstractPool logging
Date Tue, 26 Feb 2002 21:26:27 GMT

> From: Berin Loritsch [mailto:bloritsch@apache.org]
> Actually, the fact that it logs at DEBUG is fine.  It is there to catch
> any issues with the Pool code itself.  Therefore you don't really want
> it shoving out several hundreds of messages if you can help it.

The only problem being that any exception thrown in the component's
method gets logged at DEBUG level.

The behaviour is also dissimilar to ECM's handling of this:
The ThreadSafeComponentHandler will initialize its singleton instance
in its own initialize() method. Any exception in the instance's initialize()
is logged by ECM with an ERROR priority.

The DefaultComponentHandler will allow the Exception thrown from
initialize() to propagate up where it will be rethrown by ECM, wrapped
in a ComponentException.

Or - since the PoolableComponentHandler uses the ResourceLimitingPool
now, is this issue moot as the AbstractPool is deprecated?

(The ResourceLimitingPool will allow an exception thrown by the
ComponentFactory to propagate upwards and be wrapped in a
so logging works fine there.)


To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>

View raw message