Win a copy of Design for the Mind this week in the Design 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic