File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat, Apache WebServer: When restart?

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
does anyone of you know if you have to shutdown and restart Tomcat and the Apache WebServer in case your application (*.jsp-files and servlets) changed?
Thanks in advance,
Micha
 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
JSP's will recompile automically when they are changed, it's a beautiful thing. you never have to bounce(stop and start) a server for JSP changes.
Changes in java classes are automatically reflected if you have it set to do so in your application's context, which is defined in the server.xml file in Tomcat. That being said, i found it doesn't work all the time, so I just bounce tomcat every time I change a class.
You should never have to bounce apache for these type of things.
(this is based on sun solaris versions of apache and tomcat).
jashman
joel@tantalus.com
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jashman:
"That being said, i found it doesn't work all the time, so I just bounce tomcat every time I change a class."
Ah! Now we agree
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BTW, commercial grade servers (even development tools) like IBM's Visual Age for Java recompile the JSPs when they are changed. Not so for the servlets. If you modify a servlet, you'll have to restart the Test Environment.
Joke: Do you know why they call it "Visual Age"? Because you age visually when you use it!
 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
Hi Tony:
So you think we have to restart the server every time we want to use changed servlets? That's pretty a bummer because the application might be used by a bunch of people which may be upset when the server is down quite often.
Hmmm, hope we do not have to correct our servlets after we'll have released our application.
Anyway, I thank you guys for your help!
Micha
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic