Temporary and Permanent Servlets
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.
- This is useful when startup costs are high, such as a servlet that establishes a connection to a database.
- Also useful for permanent server-side service, such as an RMI server.
- Provides faster response to client requests when this is crucial.
Being temporary or permanent is part of the server configuration.