Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Updating your Action Servlets as runtime

 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, I was wondering... In plain ol servlets, when you make changes to your servlet, you would usually have to restart tomcat. Since I haven't tested struts on a live running site(uploaded on the internet) with users accessing your files/classes most of the time. Would it be ok to just replace the old class files with a new one without restarting the server? I'm getting a little anxious about the impact it could cause to my app's performance. I have a feeling that there would be frequent changes, and that It would require me to update the classes on the server as soon as changes are made. Thanks!
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I'm testing, I frequently make changes to my Action and model classes without restarting the application. Most of the time, it works fine, but there are a few "gotchas". I find that if I try to change a Static field or method, it doesn't work. I have to restart. If you make changes to your struts-config.xml file, there's no getting around it.. you must restart the application.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic