This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes ServletConfig initialized Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "ServletConfig initialized" Watch "ServletConfig initialized" New topic
Author

ServletConfig initialized

Bharath Chinnadurai Maharajan
Greenhorn

Joined: Dec 22, 2004
Posts: 26
Is a servlet config object initialized by the container automatically for a web application when it starts.


bharath
Eddy Lee Sin Ti
Ranch Hand

Joined: Oct 06, 2005
Posts: 135
The ServletConfig object is initialized for each instance of the servlet defined in the web deployment descriptor whenver the servlet container initialized a servlet. And when does this happen? it's depends on the servlet container strategy. Some of them load all servlets at once when the container started.

You can control when the servlet is initialized using the <load-on-startup> element in the deployment descriptor.


SCJP, SCWCD, SCJWS, IBM 700,IBM 701, IBM 704, IBM 705, CA Clarity Technical<br /> <br /><a href="http://eddyleesinti.blogspot.com" target="_blank" rel="nofollow">http://eddyleesinti.blogspot.com</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ServletConfig initialized