Configure a new data source custom property

  • Identify the parent ID:

    set newds [$AdminConfig getid /Cell:cellname/Node:nodename/JDBCProvider:JDBC1/DataSource:DS1/]
    

    Example output:

    DS1(cells/cellname/nodes/nodename:resources.xml$DataSource_1)
    

  • Create the J2EE resource property set:

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

    Example output:

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

  • Get required attribute:

    $AdminConfig required J2EEResourceProperty
    

    Example output:

    Attribute     Type
    name         String
    

  • Set up attributes:

    set name [list name RP4]
    set rpAttrs [list $name]
    

  • Create a J2EE resource property:

    $AdminConfig create J2EEResourceProperty $newPropSet $rpAttrs
    

    Example output:

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

  • Save changes:

    $AdminConfig save
    

 

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