Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding Schedular java program on Tomcat Server

 
saravanan periasamy
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a java program and running a web application on tomcat server (Windows/Linux/Solaris).

My problem is to start/stop the java program whenever the tomcat server start/stop.

Please help on this.
Saravanan.P
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to start the Java program from within your web application, a ContextListener would be the best place to do it.

http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContextListener.html
 
We can walk to school together. And we can both read this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!