• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt on Load on startup tag and Meta-inf

 
Abhishek Pratap
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

1)the errata abt <load-on-startup> says "If you have two or more servlets with the same value, the Container may
choose the order in which this subset is initialized."
does it mean that within the same subset the sequence is container dependent.

if the <load-on-startup> for servlet1, servlet2 , servlet3 is 1,2,2. what will be the sequence?

2) Is META-INF is mandatory inside war?
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) If the <load-on-startup> for servlet1, servlet2 , servlet3 is 1,2,2. what will be the sequence?

>> servlet1 is loaded first and the container decides which (servlet2/servlet3) to load next.

2) Is META-INF is mandatory inside war?

>> YES
 
Lalit mishra
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you create a war file META-INF folder and manifest.mf file is created automatically.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic