When the webapp gets loaded the container will create the ServletContext. There is only one ServletContext per webapp per JVM.
The ServletContext object is contained within the ServletConfig object which is provided by the web server upon servlet initialisation.
- How is ServletContext created by the Container - if it is an interface?
- If there is only one ServletContext per webapp and that is provided to ServletConfig (of which there is one per Servlet) then doesn't that mean there is one ServletContext per ServletConfig?
I realize this may seem like a very basic question, but I'm trying to make sure I understand the conceptual aspects involved