What is servlet preinitialization?

Answer Posted / surajkumar.java

A servlet is lazily loaded in servlet container of web or
application server. This means, a servlet is not instantiated
or initialized in servlet container as long as it has not been
requested for the first time. A servlet can be preloaded and
preinitialized with the help of <load-on-startup> of web.xml
(deployment descriptor) file.The preloading of a servlet
before any user request is called servlet preinitialization.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of exception?

573


Why use POJO when I can use hashmap

2047


Difference between loadclass and class.forname?

600


How messaging services are done, before release of JMS?

1590


What value does readline() return when it has reached the end of a file?

593






How to implement RMI in Java?

2406


Should synchronization primitives be used on bean methods?

554


How would you detect a keypress in a jcombobox?

678


What is a class loader? What are the different class loaders used by jvm?

587


Brief description about local interfaces?

630


Can I import same package/class twice? Will the jvm load the package twice at runtime?

649


If your ui seems to freeze periodically, what might be a likely reason?

547


In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?

2158


Do we need to override service() method

1145


What is the purpose of the finally clause of a try-catch-finally statement?

559