• Post Reply Bookmark Topic Watch Topic
  • New Topic

restarting the server  RSS feed

 
kri shan
Ranch Hand
Posts: 1489
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I make some change in our servlet it gets reloaded.
Can I restart the application server?
 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using Tomcat - you can use the Management Application to restart an entire web application. Bill
 
danny liu
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in most cases, don't restart the application server. instead, you can start the related application context as bill said.

If you don't want to restart that application context, you may jump to the work directory and delete the correspondent servlet code. Next time if the servlet is accessed, the servlet will be recompiled and re-instantiated.

Dan
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!