Follow these tips to get the best performance from the wsadmin tool.
The following performance tips are for the wsadmin tool:
The following example, illustrates running multiple application installation commands from a batch file.
wsadmin -c "$AdminApp install c:\\myApps\\App1.ear {-appname appl1}" wsadmin -c "$AdminApp install c:\\myApps\\App2.ear {-appname appl2}" wsadmin -c "$AdminApp install c:\\myApps\\App3.ear {-appname appl3}"
wsadmin -lang jython -c "AdminApp.install('c:\myApps\App1.ear', '[-appname appl1]')" wsadmin -lang jython -c "AdminApp.install('c:\myApps\App2.ear', '[-appname appl2]')" wsadmin -lang jython -c "AdminApp.install('c:\myApps\App3.ear', '[-appname appl3]')"
Or, for example, using Jacl, you can create the appinst.jacl file that contains the commands:
$AdminApp install c:\\myApps\\App1.ear {-appname appl1} $AdminApp install c:\\myApps\\App2.ear {-appname appl2} $AdminApp install c:\\myApps\\App3.ear {-appname appl3}
Invoke this file using the following command: wsadmin -f appinst.jacl
Or using Jython, you can create the appinst.py file, that contains the commands:
AdminApp.install('c:\myApps\App1.ear', '[-appname appl1]') AdminApp.install('c:\myApps\App2.ear', '[-appname appl2]') AdminApp.install('c:\myApps\App3.ear', '[-appname appl3]')
Then invoke this file using the following command: wsadmin -lang jython -f appinst.py.