Create a new custom property using wsadmin

 

Using Jacl...


set newMP [$AdminConfig getid /Cell:cell/Node:node/MailProvider:MailProvider/]


set propSet [$AdminConfig showAttribute $newMP propertySet]


$AdminConfig required J2EEResourceProperty


set name    [list name CP1]
set cpAttrs [list $name]


$AdminConfig create J2EEResourceProperty $propSet $cpAttrs

$AdminConfig save

 

Using Jython

newMP = AdminConfig.create('MailProvider', node, mpAttrs)
print newMP

propSet = AdminConfig.showAttribute(newMP, 'propertySet')
print propSet

print AdminConfig.required('J2EEResourceProperty')

name = ['name', 'CP1']
cpAttrs = [name]
print cpAttrs


print AdminConfig.create('J2EEResourceProperty', propSet, cpAttrs)

AdminConfig.save()