wsadmin.sh
wsadmin.sh.sh -help
wsadmin.sh is a JACL shell with access to the WAS Mbeans and four WAS-specific Java extension administration objects. JACL is tcl with Java extensions... it gives you access to both Java language functionalities and to Java objects.
Can run without connecting to server, like: wsadmin.sh -conntype NONE
I know of no way to use wsadmin to "start" an existing application that is currently not running. If you update an app that is currently running and don't save until you are finished, the app will continue to run (there is an example of this below). For an app with a new name, if you want it to run, you will have to use an Admin Console to do that (see next item about visibility), or restart WAS.
Like the Administrative Console, wsadmin does not see changes made by outside means after you enter a shell.
You can not start a (normal standalone) WAS instance with wsadmin.
The four WAS administration objects provided are aliased to variables.
These are all sub-commands of the four Administration objects listed above.
[list $webmodule_dispname $warfile,WEB-INF/web.xml default_host]],
where default_host is the default virtual host).
The following sequence is equal to Console Update + Apply
$AdminApp uninstall {AppName}
$AdminApp install...
$AdminConfig save
OR
$AdminConfig reset
The app continues running!
If you download http://admc.com/blaine/howtos/nextel-util.jacl and run the command
source /app/iws/was/scripts/nextel-util.jacl
in wsadmin, then that jacl shell will have access to the procedures
installApp and updateApp.
installApp ApplicationName path/to/file.ear nodeName serverName
installApp ApplicationName path/to/file.ear nodeName serverName prefix
updateApp ApplicationName path/to/file.ear nodeName serverName
updateApp ApplicationName path/to/file.ear nodeName serverName prefix
The installApp and updateApp procedures can be used from ant. See the -deploy target in the Ant build file http://admc.com/blaine/howtos/nextelapp-build.xml.
If you have not upgraded Ant to 1.5, then see the instructions on that procedure in the installation HOWTO.