Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to invoke any applicaton with Tomcat 4.1

 
Ganesh Prakhya
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I installed Tomcat 4.1 as a Windows service and it is running fine soon after starting windows. My requirement is, when Tomcat starts and running I want to start any other application (For example a servlet) automcatically along with Tomcat. Is it possible to do?

Thanks & Regards,
Ganesh.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the <load-on-startup> element of the <servlet> declaration in your web.xml. You can use it to run a servlet right after the container has started.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic