Configure an ORB service using scripting

 

Procedure

  1. Start wsadmin

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

    • Jacl:

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

    • 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 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
    print a Jython command

    Example output:

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

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

    • Jacl:

      set orb [$AdminConfig list ObjectRequestBroker $s1]
      

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

  4. 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.

    • Jacl:

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

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

  5. In a network deployment environment only, synchronize the node.


 

See Also


AdminConfig object for scripted administration

 

See Also


Commands for the AdminConfig object

 



 

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.