View Full Version : Multiple config files
ultan
Jan 17th, 2005, 01:22 PM
Is there a way to get the visualiser to resolve bean references in multiple config files ?
robh
Jan 17th, 2005, 04:42 PM
Ultan,
Check out point 3 under Fresh Installation at http://www.springframework.org/spring-ide/eclipse/.
Rob
ultan
Jan 18th, 2005, 05:34 AM
Thanks...why doesnt this work for the "base" config set - ie all files in the Beans Project ?
Torsten Juergeleit
Jan 18th, 2005, 04:57 PM
Thanks...why doesnt this work for the "base" config set - ie all files in the Beans Project ?
Spring IDE doesn't know anything about the relationships between the config files of a Spring project. Every config could be used to initialize a single application context. Or some of the config files can be combined to initialize a single application context. Or...
To add this missing information the concept of config sets was introduced in Spring IDE. Within a config set you define a list of config files which are treated as the confguration of a single application context. You can specify the order of config files within this application context to simulate / validate bean overiding.
To make the things more complicated you can add config files from other Spring projects (via external project references) to config sets too ;-)
Cheers,
Torsten
ultan
Jan 18th, 2005, 06:11 PM
torsten, thanks. Ive already found IDE very useful in helping document my work.
On the config matter - perhaps a doc update would help ? How about detection of contextConfigLocation in web.xml ?
And to veer off topic - how about a generalised admin app outside of eclipse - given some config and a list of jars to find beans in....help ops, admins and application assemblers build valid config....
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.