On Apr 5, 2005 1:03 AM, Marco Mistroni <mmistroni@waersystems.com> 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: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
|