WAS Deploy Script

When you’re developing for IBM Websphere, you could update your application using the webinterface. But that is a bit slow, and you risk trashing your Websphere installation. You can also use a script. Below is a Windows batch file to do just that.


set WSADMIN_BIN=C:\was_profile\bin
set APP_NAME={My Web Application}
set EAR_LOC=C:\location\application.ear

call wsadmin -c "$AdminApp update %APP_NAME% app {-operation update -contents %EAR_LOC%}"