On 4/10/06, Chris Clarke <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I'm having an issue with getting a Catalog from the CatalogFactory with
> Commons Chain. I've defined my own XML configuration file as follows:
>
> <?xml version="1.0" ?>
> <chains>
> <chain name="logon">
> <command name="CheckCredentials" className="
> com.talis.springbok.jsfspike.manager.logon.commands.CheckCredentials"/>
> <command name="RetrievePermissions" className="
> com.talis.springbok.jsfspike.manager.logon.commands.RetrievePermissions"/>
> </chain>
> </chains>
This configuration file is not creating any catalog names. Try doing
something like this:
<?xml version="1.0" ?>
<chains>
<catalog name="My Catalog">
<chain name="logon">
<command name="CheckCredentials"
className="
com.talis.springbok.jsfspike.manager.logon.commands.CheckCredentials"/>
<command name="RetrievePermissions"
className="
com.talis.springbok.jsfspike.manager.logon.commands.RetrievePermissions"/>
</chain>
</catalog>
</chains>
and you'll be able to call getCatalog("My Catalog") to pick up the entire
catalog (with only one chain in this case).
Craig