This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes Servlets and the fly likes servlet loading 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 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet loading" Watch "servlet loading" New topic

servlet loading

Monmohan Singh
Ranch Hand

Joined: Aug 02, 2002
Posts: 82
How to make sure that a servlet is loaded once and only once by the server.?
Mani Narayanan

Joined: Feb 20, 2004
Posts: 5
The easiest way to find this, put system out in your servlet initialization method for eg: init(ServletConfig) and when you call the same servlet again, check whether the system out are printed again but it won't since initialize method is called only once for every loading in the servlet container.
stop your servlet container and again start the same it will call the initialize method again
jQuery in Action, 2nd edition
subject: servlet loading