What is meant by preintialization?

Showing Answers 1 - 2 of 2 Answers

krishna kumar jha

  • May 1st, 2006
 

initialization of servlet by server on startup prior to getting the request for that servlet is know as preintialization.It is really accomplished by specifying the postive value in load-on-startup tag in the web.xml.

when we send any request to the servlet, that request tryies to find servlet 1st. second servlet executing following sequence of method

init()
service()
destroy()

so the 1st time request to servlet, response time is high than 2nd request

so to avoid above problem, we preintialize that servlet into web.xml

so at time of booting server, server load servlet.

this preintialization

so we need not execute init() method again.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions