This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Are Servlet engines free to retire servlets at any time Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "Are Servlet engines free to retire servlets at any time" Watch "Are Servlet engines free to retire servlets at any time" New topic
Author

Are Servlet engines free to retire servlets at any time

Krupa Eng
Ranch Hand

Joined: Sep 05, 2003
Posts: 60
Which of the following are true statements?
A Servlets are not instantiated.
B JSP page is translated into a servlet when it is first invoked.
C J2EE specifies two types of Web components.
D Servlet engines are free to retire servlets at any time.
I thought B and C are correc t but the answers say that D is also true.
Are Servlet engines free to retire servlets at any time.
please clarify
Thanks,


Krupa
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
From what I understand, a servlet engine might retire a servlet at any time. Imagine the engine needing to free memory because it's running out of it. So it can, for example, destroy the instance of a servlet which has been used less.


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Also, have a look at the servlet life cycle, it can clear a lot of doubts.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Are Servlet engines free to retire servlets at any time
 
Similar Threads
Confusion in Single Thread Model
Servlet
can any one help me in finding wrong answers
Test 283
doubt about constraints of WEB-INF folder