Configure custom properties for J2C resource adapters using wsadmin
An example configuring a new custom property for a J2C resource adapters follows:
- Identify the parent ID and assign it to the newra variable.
set newra [$AdminConfig getid /Cell:cellname/Node:nodename/J2CResourceAdapter:RAR1/]
An example of this output follows:
RAR1(cells/cellname/nodes/nodename:resources.xml#J2CResourceAdapter_1)- Create a J2EE resource property set:
set newPropSet [$AdminConfig create J2EEResourcePropertySet $newra {}]
An example of this output follows:
(cells/cellname/nodes/nodename:resources.xml#J2EEResourcePropertySet_8)- Identify the required attributes:
$AdminConfig required J2EEResourceProperty
An example of this output follows:
Attribute Type name String- Set up the required attributes:
set name [list name RP4] set rpAttrs [list $name]- Create a J2EE resource property:
$AdminConfig create J2EEResourceProperty $newPropSet $rpAttrs
An example of this output follows:
RP4(cells/cellname/nodes/nodename:resources.xml#J2EEResourceProperty_8)- Save changes:
$AdminConfig save
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.