- This is part of web.xml which will be <load-on-startup>1</load-on-startup>
- Helps to load the servlet at the time of deployment or server start if the value is positive
- This is also known as pre initialization of the servlet
- Advantage of using this parameter is it will take less time for responding to the first request
- Container loads the servlet with ascending integer values like 0, 1, 2, 3 etc
- If the negative number is passed as a parameter then the servlet will be loaded at the request time at the first request.
No comments:
Post a Comment