• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

load on startup

 
Alister Pate
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys.
My current "issue" is how to configure tomcat 4.1 to run an application (ie a servlet) on startup. Is there an easy way to do this? I've scanned the documentation (briefly) but without a lot of success.
Alister
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's part of the servlet declaration in web.xml


A non-null value for load-on-startup will ensure your servlet loads, and if order is important, it will load them in the numerical order of the load-on-startup elements.
 
Alister Pate
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic