Example: Configuring a new J2C resource adapter using wsadmin
An example configuring a new J2C resource adapter follows:
- Identify the parent ID and assign it to the node variable.
set node [$AdminConfig getid /Cell:mycell/Node:mynode/]An example of this output follows:
mynode(cells/mycell/nodes/mynode:node.xml#Node_1)- Identify the required attributes:
$AdminConfig required J2CResourceAdapterAn example of this output follows:
Attribute Type name String- Set up the required attributes:
set rarFile c:/currentScript/cicseci.rar set option [list -rar.name RAR1]- Create a resouce adapter:
set newra [$AdminConfig installResourceAdapter $rarFile mynode $option]An example of this output follows:
RAR1(cells/mycell/nodes/mynode:resources.xml#J2CResourceAdapter_1)- Save the changes with the following command:
$AdminConfig save