This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes how server will know ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "how server will know ?" Watch "how server will know ?" New topic
Author

how server will know ?

Sakthi Kani
Ranch Hand

Joined: Mar 29, 2005
Posts: 98
Hi

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

Init()
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)

service()
For each Request from client, service method is called

Destroy
When server is shutdown

hth(hope this helps--Bert Bates)
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how server will know ?
 
Similar Threads
cannot upload file in safari working fine in firefox
Access a JavaScript variable from a Java program
to know the no of client requesting
how can I know client died from server class??
difference between container and application server