Reputation: 27425
I came up with the parent/child
-container concept. I have the spring's param defined in web.xml
file as follows:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/applicationContext-site-dao.xml
/WEB-INF/applicationContext-site-security.xml
/WEB-INF/applicationContext-mailing.xml
classpath:**/applicationContext-*.xml
classpath*:META-INF/applicationContext-*.xml
</param-value>
</context-param>
Is that configuration is going to create 5 child containers of 1 big parent container?
Upvotes: 0
Views: 482
Reputation: 280132
Given that your asking about a context-param
, I'm going to assume you're asking about the ContextLoaderListener
.
The ContextLoaderListener
will create a single ConfigurableWebApplicationContext
and use its ConfigurableWebApplicationContext#setConfigLocation(String)
method to set the configuration location(s), separated by white space.
This is a single Spring container (ApplicationContext
). It has no parents.
Spring will then create another WebApplicationContext
through the DispatcherServlet
which will use the ContextLoaderListener
's as a parent.
Upvotes: 1