DougBreaux 0100002GMN Visits (2479)
I got tired of updating a dozen applications at once, across development, test, and production systems, from the WebSphere admin GUI.
So, here's a very simple wsadmin script, updateApp.py, based on Upda
wsadmin -f updateApp.py appName filePath [nosync]
Where the optional "nosync" parameter tells the script not to sync out the changes after update and save. In case you want to do more than one, then sync them all at the end.
WARNING: if you have more than one application installed, be very careful that you match the application name with the correct file.
Here's another script, updateAppList.py, that I admit I haven't tested yet, that should allow you to edit a list of apps/ears to update, then update them all at once.
Have you ever discovered that you no longer have the EAR file for the specific version of an Enterprise Application which is deployed on one of your systems?
It turns out WebSphere keeps a copy around that can be retrieved and re-deployed elsewhere. For the Network Deployment edition of WAS v6.1, you can find a deployed EAR file in:
(Note the ear name twice, first as a directory, then as a file.)