Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WSAD Load on startup

 
willem leber
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Can somebody help me?

I have the following question:
(one of the questions of the WSAD examen 286 which I did not pass)
(the help doesn't give me any clue!?)

The load on startup order of the servlets are as follow:
servlet1: 1
servlet2: 2
servlet3: <empty>
servlet4:-1

What would be the order in which the servlets are loaded?

with kind regards
willem
 
Lin Feng
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The load-on-startup controls the sequence of servlet loading. It requires a positive number. If the value is not a positive number , the server can load it at any time. From your post , we can get to know the servlet 1 is loaded before servlet 2. The servlet 3 and 4 can be loaded at anytime.
 
Tong Chen
Ranch Hand
Posts: 1011
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you may find why thru reading servlet spec.
 
willem leber
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic