Sunday, July 24, 2011

Unraveling the code patches !!

For supporting an existing commerce site, performing a code patch is an important feature for the success of an eCommerce platform.
A complete code deploy is not always an option as it could involve a longer down time and even though commerce offers the feature of deploying code on 1 node at a time through Deployment Manager (DM) without bringing down the complete site. The above step is only possible if you don't have database changes.
Also the regression testing for complete code deploy does not make it very ideal. Performing a java code patch e.g. ExtLogonControllerCmdImpl class in package com/company/user/commands

1. If there are any DB related changes. Make them first.
2.Stop 1 server at a time.
3 CD opt/IBM/WebSphere/AppServer/profiles//installedApps/WC__cell/WC_.ear/Stores.war/WEB-INF/classes/
4. Create the complete directory structure of the package and drop the class file. com/company/user/commands/ExtLogonControllerCmdImpl.class.
5. Restart the server.

If you have only JSP changes, drop the JSP in the appropriate folder and delete the JSP cache in temp folder and refresh DynaCache. Does not require a server restart.

No comments:

Post a Comment