Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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: 42970
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.
 
Bring out your dead! Or a tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!