ApplicationContextInitializer and contextConfigLocation ?

Tom Zeller tzeller at dragonacea.biz
Wed Jun 18 18:58:26 EDT 2014


> Another random idea:  I'm not sure if the ordering of execution of
> ServletContextListeners can be guaranteed, but if it can:  You could
> have one that runs before the Spring ContextLoaderListener and whose
> purpose is to process whatever system properties are there, well-known
> locations, etc and have it ensure that the idp.home is set.  Then the
> standard Spring code in ContextLoaderListener will just resolve idp.home
> out of system properties using the syntax you already showed.

Looks like as of Servlet API 3.0, ServletContextListeners are invoked
in the order they are declared in web.xml, so moving the logic to find
idp.properties to a listener is an option.


More information about the dev mailing list