Hello All,
When a
servlet container is started, it looks for a Deployment Descriptor (DD) file- web.xml.
Is it true that for every registered servlet, the container will instantiate it. Put simply, say I have two servlets: A and B. Only A is registered in the DD web.xml file (no, <load-on-startup> tag). When the container is started, is it that only servlet A is instantiated, or do i need to put <load-on-startup> to make sure the servlet A is instantiated? And, what happens to Servlet B which is not registered in web.xml file? is it also instantiated when s container is started or when it's requested for the first time?
Any help shall be highly appreciated.
Thanks,
Reema