cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: proposal: entity resolution capability
Date Tue, 21 Aug 2001 14:16:10 GMT
Quoting Davanum Srinivas <dims@yahoo.com>:

> Please try the following.
> 
>         try {
>             URLFactory urlFactory =
> (URLFactory)this.manager.lookup(URLFactory.ROLE);
>             URL url =
> urlFactory.getURL("context://resources/entities/catalog");
>         } catch (Exception e) {
>             log.error("cannot obtain the URLFactory", e);
>             throw new SAXException ("cannot obtain the URLFactory", e);
>         } finally {
>             if(urlFactory != null)
> this.manager.release((Component)urlFactory);

Just a FYI. It is no longer necessairy to do the above statement. The contract 
to the release method is that null arguments gets ignored by the 
ComponentManager, thus a 

          this.manager.release((Component)urlFactory);

is all you have to do in the finally block.

Giacomo

>         }
> 
> Thanks,
> dims
> 
> > The only configuration information that we need to know
> > is the full run-time pathname to the default catalog
> > file which will be at webapps/cocoon/resources/entities/catalog
> > We should leave the CatalogManager.properties file for
> > local configuration.
> > 
> > Any clues on how to determine that pathname are appreciated.
> > cheers, david
> 
> 
> =====
> Davanum Srinivas, JNI-FAQ Manager
> http://www.jGuru.com/faq/JNI
> 
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message