commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig McClanahan <craig...@gmail.com>
Subject Re: Commons chain: Registring commands outside web application?
Date Thu, 02 Jun 2005 20:39:05 GMT
On 6/2/05, Vinicius Caldeira Carvalho <vinicius.carvalho@squadra.com.br> wrote:
> Hello there!
> Since ConfigParser.parse(Catalog, URL) is deprecated. What's the right
> way to load a catalog descriptor from a non web application?
> Thanks
> 

As the deprecation message says, use ConfigParser.parse(URL) instead,
and pass in the URL of an xml document that has potentially multiple
catalogs in it:

    <catalogs>

        <catalog name="foo">
            ...
        </catalog>

        <catalog name="bar">
            ...
        </catalog>

    </catalogs>

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message