Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat restart problem

 
Joseph Bashir
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

My application uses Struts framework. Everytime I compile a java class, or I make changes in struts-config.xml file, I have to restart tomcat to enable java class and struts-config.xml file to show their effect. Is there any way taht I do not have to restart tomcat again and again.

I am using Tomcat 5.0.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the Tomcat manager application allows you to restart individual applications.
http://tomcat.apache.org/tomcat-5.0-doc/manager-howto.html

Also, if you manually configure your Context, you can set reloadable to "true" which will cause your application to be automatically restarted any time an already loaded class file is updated.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic