wood burning stoves 2.0
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes how server will know ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "how server will know ?" Watch "how server will know ?" New topic

how server will know ?

Sakthi Kani
Ranch Hand

Joined: Mar 29, 2005
Posts: 98

How the server will know, when it can invoke init, service,destroy methods of servlet life cycle?

Thanks in advance.

" Don't be afraid of pressure. Remember that pressure is what turns a lump of coal into a diamond... " <br /> <br />Thanks & Regards...<br />Sakthi<br />SCJP1.4, OCA
vidya sagar
Ranch Hand

Joined: Mar 02, 2005
Posts: 580
HI sakthi

When a class is loaded its init method is called
(class is loaded on first request or on specifying in DD by giving <load-on-startup>tag)

For each Request from client, service method is called

When server is shutdown

hth(hope this helps--Bert Bates)
I agree. Here's the link: http://aspose.com/file-tools
subject: how server will know ?
It's not a secret anymore!