Peter Royal wrote:
>
> I think it should be more like this. The current code is now:
>
> catch( Exception e )
> {
> if( getLogger().isWarnEnabled() )
> {
> final String message =
> "ComponentManager exception from
> parent CM during
> lookup.";
> getLogger().warn( message, e );
> }
> // ignore. If the exception is thrown, we try to
> // create the component next
> }
>
> Which is logging spurious exceptions in my case.
>
Yes, I changed it that way.
> If the parent CM doesn't (and isn't expected) to have the component, we
> expect a ComponentException there on the 1st lookup() since the
> ComponentHandler for the component has yet to be created. (These are
> components defined only in the roles file, not in the config).
>
But a CM can throw a ComponentException in other cases as well, for
example if it catches another exception and rethrows a ComponentException.
Thanks
Carsten
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>