This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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.
I agree. Here's the link:
subject: Temporary Servlet
It's not a secret anymore!