Thanks for the heads-up Giacomo.

-- dims

--- Giacomo Pati <[EMAIL PROTECTED]> wrote:
> Quoting Davanum Srinivas <[EMAIL PROTECTED]>:
> 
> > 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: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to