Configure an ORB service using scripting
Procedure
- Start wsadmin
- Identify the application server and assign it to the server variable:
Jacl:
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 WAS 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 Example output:
server1(cells/mycell/nodes/mynode/servers/server1|server.xml#Server_1)- Identify the ORB belonging to the server and assign it to the orb variable:
Jacl:
set orb [$AdminConfig list ObjectRequestBroker $s1] orb = AdminConfig.list('ObjectRequestBroker', s1) print orbwhere:
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 WAS 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 Example output:
(cells/mycell/nodes/mynode/servers/server1|server.xml#ObjectRequestBroker_1)- Modify the attributes. The following example modifies the connection cache maximum and pass by value attributes. We can modify the example to change the value of other attributes.
Jacl:
$AdminConfig modify $orb {{connectionCacheMaximum 252} {noLocalCopies true}} $AdminConfig save 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 WAS 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 - In a network deployment environment only, synchronize the node.
See Also
AdminConfig object for scripted administration
See Also
Commands for the AdminConfig object