File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Loading two servlets at the startup?

 
Jignesh Gohel
Ranch Hand
Posts: 276
  • 0
  • 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
  • 0
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic