Explain pre initialization of servlet - Java @ Desk

Tuesday, May 21, 2013

Explain pre initialization of servlet

Pre initialization of servlet is something the servlet gets loaded on server startup.

Generally, the servlet gets initialized when it receives first client request. This is called lazy loading of servlet.

When for a servlet <load-on-startup> in web.xml is defined as 1, then that servlet will gets initialized on server startup. This is called pre initialization of servlet.






No comments:

Post a Comment