There's a servlet initialization parameter available called contextConfigLocation. It works just as the contextConfigLocation parameter for the ContextLoaderListener/Servlet. I don't think it's documented enough, I'll add this somewhere this week.
So:
Code:
<servlet>
<servlet-name>xxx</servlet-name>
<servlet-class>org.spr...DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/contextOne.xml, /WEB-INF/contextTwo.xml</param-value>
</init-param>
</servlet>
I assume you're already using the ContextLoaderListener/Servlet to separate your business-tier beans from the web-tier beans? If not, this is another (and more convenient way to bring a logical separation between the different layers in your app).
regards,
Alef Arendsen