Configure custom properties for URLs

An example configuring a new custom property for a URL follows:

  • Identify the parent ID and assign it to the newurl variable.

    set newurl [$AdminConfig getid /Cell:cellname/Node:nodename/URLProvider:URLP1/URL:URL1/]
    

    An example of this output follows:

    URL1(cells/cellname/nodes/nodename:resources.xml#URL_1)
    

  • Create a J2EE resource property set:

    set newPropSet [$AdminConfig create J2EEResourcePropertySet $newurl{}]
    

    An example of this output follows:

    (cells/cellname/nodes/nodename:resources.xml#J2EEResourcePropertySet_7)
    

  • Identify the required attributes:

    $AdminConfig required J2EEResourceProperty
    

    An example of this output follows:

    Attribute     Type
    name         String
    

  • Set up the required attributes:

    set name [list name RP3]
    set rpAttrs [list $name]
    

  • Create a J2EE resource property:

    $AdminConfig create J2EEResourceProperty $newPropSet $rpAttrs
    

    An example of this output follows:

    RP3(cells/cellname/nodes/nodename:resources.xml#J2EEResourceProperty_7)
    

  • Save changes:

    $AdminConfig save
    

 

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