Configure custom properties for resource environment entries using wsadmin
An example configuring a new custom property for a resource environment entry follows...
- Identify the parent ID and assign it to the newree variable.
Using Jacl...
set newree [$AdminConfig getid /Cell:cell/Node:node/ResourceEnvEntry:REE1/]An example of this output follows:
REE1(cells/cell/nodes/node:resources.xml#ResourceEnvEntry_1)Using Jython
newree = AdminConfig.getid('/Cell:cell/Node:node/ResourceEnvEntry:REE1/') print newree- Create the J2EE custom property set...
Using Jacl...
set propSet [$AdminConfig showAttribute $newree propertySet]An example of this output follows:
(cells/cell/nodes/node:resources.xml#J2EEResourcePropertySet_5)Using Jython
propSet = AdminConfig.showAttribute(newree, 'propertySet') print propSet- Identify the required attributes...
Using Jacl...
$AdminConfig required J2EEResourcePropertyAn example of this output follows:
Attribute Type name StringUsing Jython
print AdminConfig.required('J2EEResourceProperty')- Set up the required attributes...
Using Jacl...
set name [list name RP1] set rpAttrs [list $name]Using Jython
name = ['name', 'RP1'] rpAttrs = [name]- Create the J2EE custom property...
Using Jacl...
$AdminConfig create J2EEResourceProperty $propSet $rpAttrsAn example of this output follows:
RPI(cells/cell/nodes/node:resources.xml#J2EEResourceProperty_1)Using Jython
print AdminConfig.create('J2EEResourceProperty', propSet, rpAttrs)- Save the changes...
Using Jacl...
$AdminConfig saveUsing Jython
AdminConfig.save()