On Apr 5, 2005 1:03 AM, Marco Mistroni <[EMAIL PROTECTED]> wrote:
> Hello all,
>         Does anybody know how to configure a commons chain catalog via
> Spring using XML file?
> I had a look at code, and the only component that configures catalog via
> XML is the ChainListener.
> And, if I use CatalogFactory, I have to add commands programmatically
> 
> How can integrate then Spring and Chains, if I don't want to use
> Listener?
> 

The code in ChainListener that actually does the XML configuration is
pretty straightforward, and can be used to configure the chains
however you'd like:

    ConfigParser parser = new ConfigParser();
    URL url = ... URL to your configuration document ...
    parser.parse(url);

> Thanx and regards
>         marco

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to