aspose file tools*
The moose likes Websphere and the fly likes is it necessary to redeploy when we make a change Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "is it necessary to redeploy when we make a change" Watch "is it necessary to redeploy when we make a change" New topic
Author

is it necessary to redeploy when we make a change

Vijay Raj
Ranch Hand

Joined: Oct 10, 2005
Posts: 110
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

Joined: Dec 18, 2004
Posts: 79
Hi Vijay,

Yes, suppose we change the JSP or Class file then we need to redeploy it
on the server to get affected.


Cheers<br />Nitin
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
Vijay Raj
Ranch Hand

Joined: Oct 10, 2005
Posts: 110
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.
 
subject: is it necessary to redeploy when we make a change
 
Similar Threads
SystemGlobals.properties, some properties deleted after JBoss restart
Packaging and Class Loaders
Context Reloading in JBoss
Replacing property file
Deploying servlets as a war file