jQuery in Action, 3rd edition
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 Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "ServletConfig initialized" Watch "ServletConfig initialized" New topic

ServletConfig initialized

Bharath Chinnadurai Maharajan

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

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
It's not a secret anymore!