• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Loading two servlets at the startup?  RSS feed

 
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 ]
 
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
Boost this thread!