Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Loading two servlets at the startup?

 
Jignesh Gohel
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi this is my web.xml.

I wan to load the servlet at startup so i used
<load-on-startup/> like this.Its working .





Now if i have to servlets which are to be loaded at the startup then what to do and what is the difference between <load-on-startup/> and <load-on-startup>1</load-on-startup>??
[ July 17, 2006: Message edited by: Bear Bibeault ]
 
Ola Daniel
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Now if i have to servlets which are to be loaded at the startup then what to do and what is the difference between <load-on-startup/> and <load-on-startup>1</load-on-startup>??


The load-on-startup value tells the your container the order in which to load your servlets. Servlets marked with lower integers are loaded before servlets marked with higher integers.

When you use <load-on-startup/>, your container may choose the order of loading the servlets.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic