This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Temporary Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Temporary Servlet" Watch "Temporary Servlet" New topic

Temporary Servlet

sitaram irrinki
Ranch Hand

Joined: Feb 16, 2005
Posts: 158
what is temporary servlet
Mark Vedder
Ranch Hand

Joined: Dec 17, 2003
Posts: 624

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.
Don't get me started about those stupid light bulbs.
subject: Temporary Servlet
Similar Threads
replace String from a file
Doubt in Exception handling
WA #1.....word association
Weblogic 7.0 temp dir issue
temporary servlet