+

Search Tips   |   Advanced Search

 

Configure an ORB service using scripting

 

You can use scripting to configure an ORB service. Before starting this task, the wsadmin tool must be running. See the Start the wsadmin scripting client article for more information.

 

Overview

Perform the following steps to modify the Object Request Broker (ORB) service for an appserver:

 

Procedure

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

      Use Jacl:

      set s1 [$AdminConfig getid /Cell:mycell/Node:mynode/Server:server1/]
      

    • Use Jython:

      s1 = AdminConfig.getid('/Cell:mycell/Node:mynode/Server:server1/') print s1 
      

    where:

    set Jacl command
    s1 variable name
    $ Jacl operator for substituting a variable name with its value
    AdminConfig object representing the WebSphere Application Server configuration
    getid AdminConfig command
    Cell object type
    mycell name of the object that will be modified
    Node object type
    mynode name of the object that will be modified
    Server object type
    server1 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:

      Use Jacl:

      set orb [$AdminConfig list ObjectRequestBroker $s1]
      

    • Use Jython:

      orb = AdminConfig.list('ObjectRequestBroker', s1) print orb
      

    where:

    set Jacl command
    orb variable name
    $ Jacl operator for substituting a variable name with its value
    AdminConfig object representing the WebSphere Application Server configuration
    list AdminConfig command
    ObjectRequestBroker 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.

      Use Jacl:

      $AdminConfig modify $orb {{connectionCacheMaximum 252} {noLocalCopies true}}
      

    • Use Jython:

      AdminConfig.modify(orb, [['connectionCacheMaximum', 252], ['noLocalCopies',  'true']])
      

    where:

    $ Jacl operator for substituting a variable name with its value
    AdminConfig object representing the WebSphere Application Server configuration
    modify AdminConfig command
    orb evaluates to the ID of ORB specified in step number 2
    connectionCacheMaximum attribute
    252 value of the connectionCacheMaximum attribute
    noLocalCopies attribute
    true 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.



Use the AdminConfig object for scripted administration

 

Related Reference


Commands for the AdminConfig object