You can use scripting to invoke operations on running objects.
Before starting this task, the wsadmin tool must be running. See the topic on starting the wsadmin scripting client.
You can run wsadmin commands that obtain the object names of running objects and perform operations:
The following example is for operations that require parameters:
set traceServ [$AdminControl completeObjectName type=TraceService,process=server1,*] $AdminControl invoke $traceServ appendTraceString "com.ibm.ws.management.*=all=enabled"
traceServ = AdminControl.completeObjectName('type=TraceService,process=server1,*') AdminControl.invoke(traceServ, 'appendTraceString', "com.ibm.ws.management.*=all=enabled")
In this information ...Related tasks
Related reference
| IBM Redbooks, demos, education, and more(Index) |