Configure a new referenceable using wsadmin
Using Jacl...
### Identify the parent ID and assign it to the newrep variable. set newrep [$AdminConfig getid /Cell:cell/Node:node/ResourceEnvironmentProvider:REP1/] ### Identify the required attributes... $AdminConfig required Referenceable ### Set up the required attributes... set fcn [list factoryClassname REP1] set cn [list classname NM1] set refAttrs [list $fcn $cn] ### Create a new referenceable... set newref [$AdminConfig create Referenceable $newrep $refAttrs] $AdminConfig save
Using Jython
newrep = AdminConfig.getid('/Cell:cell/Node:node/ResourceEnvironmentProvider:REP1/') print newrep print AdminConfig.required('Referenceable') fcn = ['factoryClassname', 'REP1'] cn = ['classname', 'NM1'] refAttrs = [fcn, cn] print refAttrs newref = AdminConfig.create('Referenceable', newrep, refAttrs) print newref AdminConfig.save()