• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on load-on-startup tag in the DD

 
Tyronne Fernando
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In HFSJ (2nd edition) page 628, it says if the servlets with the same value in the load-on-startup will be loaded in the order they appear in the DD.

But in the Java Servlet Specification 2.4, it says the container will decide the order.

Does that mean HFSJ is not correct? Any ideas? Thanks in advance.
 
Higor Zardo
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HFSJ says the container will decide the order.
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the specs, and my own copy of HFSJ, the container will load servlets with a lower load-on-startup number first. However, if the servlets are declared with the same load-on-startup value, then it's up to the container to decide which is loaded first.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic