Configure an ORB service using scripting

 

Configure an ORB service using scripting

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:

  1. Identify the application server and assign it to the server variable:

    • 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)

  2. Identify the ORB belonging to the server and assign it to the orb variable:

    • Using Jacl:
      set orb [$AdminConfig list ObjectRequestBroker $s1]

    • Using Jython:
      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
    print a Jython command
    Example output:

    (cells/mycell/nodes/mynode/servers/server1|server.xml#ObjectRequestBroker_1)

  3. Modify the attributes. The following example modifies the connection cache maximum and pass by value attributes. You can modify the example to change the value of other attributes.

    • Using Jacl:
      $AdminConfig modify $orb {{connectionCacheMaximum 252} {noLocalCopies true}}

    • Using Jython:
      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

  4. Save the configuration changes. See the Saving configuration changes with the wsadmin tool article for more information.

  5. In a network deployment environment only, synchronize the node. See the Synchronizing nodes with the wsadmin tool article for more information.



Related concepts
AdminConfig object for scripted administration

Related reference
Commands for the AdminConfig object