Configure custom properties for URLs using wsadmin
Using Jacl:
### Identify the parent ID and assign it to the newurl variable. set newurl [$AdminConfig getid /Cell:cell/Node:node/URLProvider:URLP1/URL:URL1/] ### Create a J2EE resource property set... set propSet [$AdminConfig showAttribute $newurl propertySet] $AdminConfig required J2EEResourceProperty ### Set up the required attributes... set name [list name RP3] set rpAttrs [list $name] ### Create a J2EE resource property... $AdminConfig create J2EEResourceProperty $propSet $rpAttrs $AdminConfig save
Using Jython:
newurl = AdminConfig.getid('/Cell:cell/Node:node/URLProvider:URLP1/URL:URL1/') print newurl ### Create a J2EE resource property set... propSet = AdminConfig.showAttribute(newurl, 'propertySet') print propSet print AdminConfig.required('J2EEResourceProperty') ### Set up the required attributes... name = ['name', 'RP3'] rpAttrs = [name] ### Create a J2EE resource property... print AdminConfig.create('J2EEResourceProperty', propSet, rpAttrs) AdminConfig.save()