2005/10/27, Mike Kanaley <mka...@ti...>:
> Has anyone considered an open source BeanFactory that uses EMF to seriali=
ze
> out application.xml configuration?
>
> Application.xml files get huge. Is there a link out there for best practi=
ces
> on managing them?
>
> Currently a BeanFactory can inherit from another BeanFactory.
>
> This means that you can have multiple application.xml files but this adds
> scoping for references.
>
> In some cases I don't want the scoping (I want to reference across
> application.xml files that are at the same depth in the hierarchy).
You can also split up your monolithic application.xml in several
smaller files that contain beans that are logically related (per
layer, for example) and load them together as one context. The beans
in each files can refer to beans defined in other files without any
scoping issues involved. In our app, we have dedicated context files
for quartz-related beans, Acegi-stuff and view-related beans, and also
dedicated files for different staging environments (for instance, for
local env. we don't use JTATransactionManager but
HibernateTransactionManager). They are loaded up as one application
context.
Joris
|