Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.
Perform the following steps to configure a new J2C resource adapter:
set node [$AdminConfig getid /Cell:mycell/Node:mynode/]
node = AdminConfig.getid('/Cell:mycell/Node:mynode/') print node
Example output:
mynode(cells/mycell/nodes/mynode|node.xml#Node_1)
$AdminConfig required J2CResourceAdapter
print AdminConfig.required('J2CResourceAdapter')
Example output:
Attribute Type name String
set rarFile c:/currentScript/cicseci.rar set option [list -rar.name RAR1]
rarFile = 'c:/currentScript/cicseci.rar' option = '[-rar.name RAR1]'
set newra [$AdminConfig installResourceAdapter $rarFile mynode $option]
newra = AdminConfig.installResourceAdapter(rarFile, 'mynode', option) print newra
Example output:
RAR1(cells/mycell/nodes/mynode|resources.xml#J2CResourceAdapter_1)
Related concepts
AdminConfig object for scripted administration
Related reference
Commands for the AdminConfig object