Hi Anthony,
What do you mean by �reading the configuration twice�? As far as I know you use the appropriate implementation of the
ApplicationContext and allow the container to load the configuration and initialize the bean factory. This will happen only once after initializing the context. Something like this:
In a web application you have to configure the context listener in your web.xml file (or use a specific
servlet with load on startup = 1):
And again is the container that loads the configurations.
My point here is that the container should be the one loading the configuration files and initializing the bean factory. Could you detail what do you mean by loading or reading the configuration twice?
Regards.