commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig McClanahan <craig...@apache.org>
Subject Re: Chain - Catalog Question.
Date Wed, 19 Oct 2005 14:00:38 GMT
On 10/18/05, Ramaswamy, Muthu <mramaswamy@gers.com> wrote:
>
> Hi All-
>
> I am new to using the Chain Framework. Followed the examples and got all
> of them working!
>
> Question:
>
> Can I use multiple Catalog?


Yes.

If yes, how can I load multiple catalog


In one or more configuration resources, you specify more than one catalog
with separate names. For example:

<catalogs>

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

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

</catalogs>

and refer those catalog/commands? Is there an api that one should use to
> load multiple catalog or write our own?


Use CatalogFactory.getCatalog() to retrieve the default catalog, or
CatalogFactory.getCatalog(String) to retrieve a specifically named Catalog.

Thanks.
>
> -Muthu


Craig

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message