FreeKB - WebSphere partial app update - update multiple files
WebSphere partial app update - update multiple files

Home > Search


This assumes you have read our getting started article on updating an WebSphere application. When updating an application, one of the options is to "Replace, add, or delete multiple files". 

This article describes how to update multiple files.

  • Refer to this article to add multiple files from an application.
  • Refer to this article to delete multiple files from an application.

 

Let's say an application has foo.jsp and foo.class.

 

Let's say the application is a WAR deployed to ${WAS_INSTALL_ROOT}/profiles/your_profile/installedApps/your_cell/demo.ear/demo.war. In this scenario, you would create the following files and directories on your local PC.

demo.war (directory) -> foo.jsp (file)
demo.war (directory) -> WEB-INF (directory) -> classes (directory) -> foo.class (file)

 

Then, you would compress the demo.war directory, such as demo.zip. On Linux, the view command can be used to see the structure of the zip archive.

Be aware that if foo.jsp or foo.class do not exist in the application, the following would add foo.jsp and foo.class, not update them.

view demo.zip

demo.war/
demo.war/foo.jsp
demo.war/WEB-INF/classes/foo.class

 

In the WebSphere admin console, select Applications > Applications types > WebSphere enterprise applications > your app > Update > Replace, add, or delete multiple files. Select your zip archive and select Next > OK > Save.

 

The app does not need to be restarted for this change to take effect. Now, navigating to foo.jsp should successfully display the updated version of foo.jsp and foo.class.

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 75018 in the box below so that we can be sure you are a human.




Comments