How servlets can be automatically reloaded?
Answers were Sorted based on User's Feedback
Answer / sandeep m
The servlet which we want to be loaded automatically on
application deployment or during container startup we need
to configure <load-on-startup>int</load-on-startup> tag for
the servlet. above tag will be in <servlet> tag body.
<load-on-startup> is optional tag. If provided Servlets
will be loaded on application or container startup in the
order of the int value of tag.
If <load-on-startup> tag is not provided servlets are
loaded when first request is received after container
startup or first request after application deployment.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / bibek
if in your deployment descriptor or <web.xml> file you have
set <load-on-startup>1</load-on-startup> then it will be
auto matically loaded
| Is This Answer Correct ? | 2 Yes | 1 No |
depends on the servlets reload properties.
| Is This Answer Correct ? | 0 Yes | 4 No |
when the several requests comes to server..how it manage the requests
What do you mean by deployment descriptor?
What is the functionality of actionservlet and requestprocessor?
i need connection pooling code.....from harpreet.your@gmail.com
Difference between web container & web server........... Difference between web server & application server?????????
What are session variable in servlets?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
Which exception is thrown if the servlet is not initialized properly?
Name the different ways of session tracking.
How can a servlet be used to generate plain text instead of html?
What is the major difference between context parameter and context attribute?
Can we write a constructor for a Servlet class ? if yes how ? if no why not ?