Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  A Look at Commons Chain, Part 2
Subject:   Great introductory article
Date:   2005-03-11 06:26:53
From:   BillSiggelkow
Response to: Great introductory article

Vijay,
It sounds like your comments are regarding part 1, is that
correct? Anyway, I used the catalog name "auto-sales" to
illustrate how you can name catalogs. Chain allows you to
have multiple catalogs in a config file like:

<catalogs>
<catalog name="auto-sales">
<chain name="sell-vehicle">...
</catalog>
<catalog name="repair-services>
...
</catalog>
</catalogs>

To answer your last question, yes, parsing the config file does load the catalog (behind the scenes it uses Digester rules to create objects from the XML).