This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Suppose I create an application context using ContextLoaderListener. And I am using Spring MVC. The DispatcherServlet is also having its WebApplicationContext. What is the relationship between these two application contexts.
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Joined: May 04, 2006
Are there 2 Spring containers one created by ContextLoaderListener and another by DispatcherServlets? If yes, then if the beans in the rootAppplicationContext are inherited by the WebApplicationApplication, do they live in 2 Containers?
Joined: Jul 05, 2005
From the documentation, yes. You can have a look at source code if you're really curious.