Update one or more files in an app already deployed to WebSphere (partial update)

Home > Search
  by

If you have an application already deployed to WebSphere, the application can be updated by doing a normal deploy. However, if you only have a few files in the app that you want to update, such as a JSP page and a properties file, it may makes sense to do a partial update.

  1. In the left panel of the WebSphere admin console, select Applications > Applications types.
  2. Select WebSphere enterprise applications.
  3. Select the app that you want to update and select Update.

You will be presented with a few options.

  • Replace the entire application
  • Replace or add a single module
  • Replace or add a single file
  • Replace, add, or delete multiple files

 


Replace the entire application

This is just like deploying the entire application. Typically, it makes more sense to follow the normal produce for a deploy using the WebSphere admin console or using the monitoredDeployableApps auto deploy. Or, you may have a deploy technology being used, such as Anthill or Jenkins.

 


Replace or add a single module

In this example, a backend JAR returns "Hello World" to a frontend WAR.

 

To replace the backend module, you will provide the relative path to the current module, and you will also select the updated module file. The file can be a WAR, JAR, SAR, or RAR. Then select Next, and follow the prompts.

 

In this example, after the module has been updated, the backend JAR now additionally returns "Partial Update Test" to the frontend WAR.

 


Replace or add a single file

In this example, an deployed app's index.jsp page contain the following. Let's say the index.jsp page was updated. The single index.jsp file can be deployed, instead of having to deploy the entire app.

 

To replace the index.jsp file, you will provide the relative path to the current index.jsp file in the app. You will also select the updated index.jsp file, and then select Next > OK > Save. The app will need to be restarted for this change to take effect. You will probably also need to clear your browsers cache to see the change made to index.jsp.

 

After the change was made, reload the app shows the updated index.jsp page.

 


Replace, add, or delete multiple files

In this example, an deployed app's index.jsp page contain the following. Let's say the index.jsp page and example.properties files were updated. The updated file can be deployed, instead of having to deploy the entire app.

 

To replace the files, you will create a .zip or .gzip (Linux) archive that contains the files. It is important to ensure that the name of the .zip or .gzip archive contains the exact name of your deployed app (Beta.war in this example). After selecting the .zip or .gzip archive, select Next > OK > Save. The app will need to be restarted for this change to take effect. You will probably also need to clear your browsers cache to see the change made to index.jsp.

 

After the change was made, reload the app, and the app should reflect the changes that were made to the files.



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 in the box below so that we can be sure you are a human.




Comments