Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Temporary Servlet  RSS feed

 
sitaram irrinki
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is temporary servlet
 
Mark Vedder
Ranch Hand
Posts: 624
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A temporary servlet is started when a request arrives and shut down after the response is generated. A permanent servlet is loaded when the server is started and lives until the server is shut down. Being temporary or permanent is part of the server configuration.

You would likely only use a temporary Servlet in a place where you know the Servlet is going to be infrequently used. You are therefore willing to sacrifice response time (since the servlet must start up with each request) in exchange for resource conservation.

Part way down the page of Sun's Tutorials & Code Camps: The Java Servlet API you will see a section entitled Temporary versus Permanent Servlets which gives some additional explanation.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!