Configure new J2C resource adapters using scripting
Procedure
- Start wsadmin
- Identify the parent ID and assign it to the node variable. The following example uses the node configuration object as the parent. You can modify this example to use the cell, cluster, server, or application configuration object as the parent.
Jacl:
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)- Identify the required attributes:
Jacl:
$AdminConfig required J2CResourceAdapter print AdminConfig.required('J2CResourceAdapter')
Example output:
Attribute Type name String- Set up the required attributes:
Jacl:
set rarFile c:/currentScript/cicseci.rar set option [list -rar.name RAR1] rarFile = 'c:/currentScript/cicseci.rar' option = '[-rar.name RAR1]'
- Create a resource adapter:
Jacl:
set newra [$AdminConfig installResourceAdapter $rarFile mynode $option] $AdminConfig save newra = AdminConfig.installResourceAdapter(rarFile, 'mynode', option) print newra
Example output:
RAR1(cells/mycell/nodes/mynode|resources.xml#J2CResourceAdapter_1)- In a network deployment environment only, synchronize the node.
See Also
AdminConfig object for scripted administration
See Also
Commands for the AdminConfig object