Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ServletConfig initialized

 
Bharath Chinnadurai Maharajan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is a servlet config object initialized by the container automatically for a web application when it starts.
 
Eddy Lee Sin Ti
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic