HI., i have one application with 100 servelts.all contains inti() method implemented,so when i deployed the application in server,all the inti methods inside 100 servlets will get called..?or when i sent request to that particular servlet then only init method will get called..?
Thanks Kim.
Sundar Ram
Ranch Hand
Joined: May 22, 2006
Posts: 102
posted
0
>,all the inti methods inside 100 servlets will get called..?or when i sent >request to that particular servlet then only init method will get called..?
By default each servlet gets initiated only when that servlet is requested. You may change this behavior by using <load-on-startup> element which will initialize your servlet when the application is deployed.