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 configure a new custom property:
set newmp [$AdminConfig getid /Cell:mycell/Node:mynode/MailProvider:MP1/]
newmp = AdminConfig.create('MailProvider', node, mpAttrs) print newmp
Example output:
MP1(cells/mycell/nodes/mynode|resources.xml#MailProvider_1)
set propSet [$AdminConfig showAttribute $newmp propertySet]
propSet = AdminConfig.showAttribute(newmp, 'propertySet') print propSet
Example output:
(cells/mycell/nodes/mynode|resources.xml#PropertySet_2)
$AdminConfig required J2EEResourceProperty
print AdminConfig.required('J2EEResourceProperty')
Example output:
Attribute Type name String
set name [list name CP1] set cpAttrs [list $name]Example output:
{name CP1}
name = ['name', 'CP1'] cpAttrs = [name] print cpAttrsExample output:
[[name, CP1]]
$AdminConfig create J2EEResourceProperty $propSet $cpAttrs
print AdminConfig.create('J2EEResourceProperty', propSet, cpAttrs)
Example output:
CP1(cells/mycell/nodes/mynode|resources.xml#J2EEResourceProperty_2)
Related concepts
AdminConfig object for scripted administration
Related reference
Commands for the AdminConfig object