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.

@setlocal

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

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

Leave a Reply

Your email address will not be published. Required fields are marked *