Replacing class file instead of redeploying whole WAR package

Hi,

This may sound very silly question, but I thought to post it just as to confirm.

I have an application deployed in websphere ver 5. Usually when there are any changes to any class files, we rebuild the entire package, and then redeploy it using the admin console.

Now, this time I've got only a couple of classes modified...my question is that can I just replace the modified classes directly instead of rebuilding the entire package and redeploying it?

I'd assume that this is different from hot deployment, as I am prepared to start the server again if needed be. Please advise folks.

Thanks

[642 byte] By [PGoyala] at [2007-10-3 1:14:28]
# 1
Try it - that works with Sun's Application Server. It probably depends on the type/function of the file replaced, though.
ChuckBinga at 2007-7-14 18:11:34 > top of Java-index,Desktop,Runtime Environment...
# 2

Following link will answer all your questions. There is no need to redeploy evrything as wells as no need to restart server every time. Let me know if you need any more information.

http://publib.boulder.ibm.com/infocenter/wasinfo/v4r0/index.jsp?topic=/com.ibm.websphere.v4.doc/wasa_content/060501.html

j_pravina at 2007-7-14 18:11:34 > top of Java-index,Desktop,Runtime Environment...
# 3

The problem is that this particular class (servlet) can run only in production environment...there is no test environment to run it..but thanks...I did see IBM's take on this.

http://publib.boulder.ibm.com/infocenter/wasinfo/v5r0/index.jsp?topic=/com.ibm.websphere.zseries.doc/info/zseries/ae/trun_app_hotupgrade_war.html

I think it does answer the question, I can replace the .class file directly in the expanded version of the war package, and then restart the application. It should be picked up automatically.

Thanks for your response.

PGoyala at 2007-7-14 18:11:34 > top of Java-index,Desktop,Runtime Environment...