• Post Reply Bookmark Topic Watch Topic
  • New Topic

when is it actually loaded

 
richa mehta
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all

I had a query. When would the servlet be loaded.
1. When the request comes
2. When Web server starts starts the container(ex. tomcat)

Thanks
Richa
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Generally a servlet is loaded when it is first accessed. The exception are servlets configured that are loaded at startup, which is done by the load-on-startup element in the web.xml file.
 
richa mehta
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!