This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

load-on-startup  RSS feed

 
app yadav
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Can any one pls tell me what are the possible int values that can be used in case of <load-on-startup>.

Thanks in advance.

Aparna Yadav
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It can be a value of 1 or greater. The one with the "1" will be loaded first, and then the others in ascending order.

Note that starting with Servlet API 2.3, the concept of javax.servlet.ServletContextListener can be used to initialize anything that needs initializing. That is a much cleaner solution than having a servlet that does not actually serve anthing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!