You can use scripting and the wsadmin tool to configure processes.
About this task
Perform the following steps to configure a process:
Procedure
- There are two ways to perform this task. Choose one of the following:
- Using the AdminTask object:
Using Jacl:
$AdminTask setProcessDefinition {-interactive}
Using Jython:
AdminTask.setProcessDefinition (['-interactive'])
- Using the AdminConfig object:
- Identify the server and assign it to the s1 variable. For example:
Using Jacl:
set s1 [$AdminConfig getid /Cell:mycell/Node:mynode/Server:server1/]
Using Jython:
s1 = AdminConfig.getid('/Cell:mycell/Node:mynode/Server:server1/')
print s1
where:
set |
is a Jacl command |
s1 |
is a variable name |
$ |
is a Jacl operator for substituting a variable name
with its value |
AdminConfig |
is an object representing the WebSphere
Application Server configuration |
getid |
is an AdminConfig command |
Cell |
is the object type |
mycell |
is the name of the object that will be modified |
Node |
is the object type |
mynode |
is the name of the object that will be modified |
Server |
is the object type |
server1 |
is the name of the object that will be
modified |
print |
a Jython command |
Example output:
server1(cells/mycell/nodes/mynode/servers/server1|server.xml#Server_1)
- Identify the process definition belonging to this server and assign it
to the processDef variable. For example:
Using Jacl:
set processDef [$AdminConfig list JavaProcessDef $s1]
set processDef [$AdminConfig showAttribute $s1 processDefinitions]
Using Jython:
processDef = AdminConfig.list('JavaProcessDef', s1)
print processDef
processDef = AdminConfig.showAttribute(s1, 'processDefinitions')
Example output:
(cells/mycell/nodes/mynode/servers/server1|server.xml#JavaProcessDef_1)
- Change the attributes.
- Save the configuration changes. See the Saving configuration changes with the wsadmin tool article for more information.
- In a network deployment
environment only, synchronize the node. See the Synchronizing nodes with the wsadmin tool article for more information.