• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is it necessary to redeploy when we make a change

 
Vijay Raj
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I just wanted to know whether is it necessary to redeploy a war file when we make some changes in the expanded web application.

I made some changes in the jsp page and it got reflected. But if I make a change in a Java class, compile it and replace it with the old one, the old one still persists. Restarting the web application, even the server does not affect.

I did not try to redeploy the war file but I suppose that is the only solution.

regards,
vijay.
 
Nitin Jawarkar
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vijay,

Yes, suppose we change the JSP or Class file then we need to redeploy it
on the server to get affected.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That depends on the server settings. There is usually a setting that allows JSP changes to be picked up automatically (though it's generally turned off in production). Same thing for classes, although reloading a class means to restart the webapp. Restarting the web app should pick up the altered class, unless all that does is to re-unpack the war file. All this is server-specific, so have a look at the documentation.
 
Vijay Raj
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Websphere 5.0. The JSP changes are picked up automatically. Changes made in class files are not picked up though.

In Tomcat, we used to specify the attribute, reloadable="true" to do the same. In WAS, what needs to be done. I am stuck because of this.

regards,
vijay.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic