Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.
Perform the following steps to modify the Object Request Broker (ORB) service for an application server:
set s1 [$AdminConfig getid /Cell:mycell/Node:mynode/Server:server1/]
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 |
a Jython command |
server1(cells/mycell/nodes/mynode/servers/server1|server.xml#Server_1)
set orb [$AdminConfig list ObjectRequestBroker $s1]
orb = AdminConfig.list('ObjectRequestBroker', s1) print orb
where:
set | is a Jacl command |
orb | 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 |
list | is an AdminConfig command |
ObjectRequestBroker | is an AdminConfig object |
s1 | evaluates to the ID of server specified in step number 1 |
a Jython command |
(cells/mycell/nodes/mynode/servers/server1|server.xml#ObjectRequestBroker_1)
$AdminConfig modify $orb {{connectionCacheMaximum 252} {noLocalCopies true}}
AdminConfig.modify(orb, [['connectionCacheMaximum', 252], ['noLocalCopies', 'true']])
where:
$ | is a Jacl operator for substituting a variable name with its value |
AdminConfig | is an object representing the WebSphere Application Server configuration |
modify | is an AdminConfig command |
orb | evaluates to the ID of ORB specified in step number 2 |
connectionCacheMaximum | is an attribute |
252 | is the value of the connectionCacheMaximum attribute |
noLocalCopies | is an attribute |
true | is the value of the noLocalCopies attribute |
Related concepts
AdminConfig object for scripted administration
Related reference
Commands for the AdminConfig object