Before you begin
Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.You must install the application before starting it. See the Installing applications with the wsadmin tool article for more information.
Why and when to perform this task
Perform the following steps to start an application:
Steps for this task
set appManager [$AdminControl queryNames cell=mycell,node=mynode,type=ApplicationManager,process=server1,*]
appManager = AdminControl.queryNames('cell=mycell,node=mynode,type=ApplicationManager,process=server1,*') print appManager
set | is a Jacl command |
appManager | is a variable name |
$ | is a Jacl operator for substituting a variable name with its value |
AdminControl | is an object that enables the manipulation of MBeans running in a WebSphere Application Server process |
queryNames | is an AdminControl command |
cell=mycell,node=mynode,type=ApplicationManager,process=server1 | is the hierarchical containment path of the configuration object |
is a Jython command |
WebSphere:cell=mycell,name=ApplicationManager,mbeanIdentifier=ApplicationManager,type=ApplicationManager,node=mynode,process=server1
$AdminControl invoke $appManager startApplication myApplication
AdminControl.invoke(appManager, 'startApplication', 'myApplication')
$ | is a Jacl operator for substituting a variable name with its value |
AdminControl | is an object that enables the manipulation of MBeans running in a WebSphere Application Server process |
invoke | is an AdminControl command |
appManager | evaluates to the ID of the server that is specified in step number 1 |
startApplication | is an attribute of the modify command |
myApplication | is the value of the startApplication attribute |
Related concepts
AdminControl object for scripted administration
Related tasks
Installing applications with the wsadmin tool
Related reference
Commands for the AdminControl object