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 J2C administrative object:
set newra [$AdminConfig getid /Cell:mycell/Node:mynode/J2CResourceAdapter:RAR1/]
newra = AdminConfig.getid('/Cell:mycell/Node:mynode/J2CResourceAdapter:RAR1/') print newra
Example output:
RAR1(cells/mycell/nodes/mynode|resources.xml#J2CResourceAdapter_1)
$AdminTask listAdminObjectInterfaces $newraUsing Jython:
AdminTask.listAdminObjectInterfaces(newra)Example output:
com.ibm.test.message.FVTMessageProvider
$AdminTask createJ2CAdminObject $newra { -name ao1 -jndiName eis/ao1 -adminObjectInterface com.ibm.test.message.FVTMessageProvider }Using Jython:
AdminTask.createJ2CAdminObject(newra, ['-name', 'ao1', '-jndiName', 'eis/ao1', '-adminObjectInterface', 'com.ibm.test.message.FVTMessageProvider'])
$AdminConfig required J2CAdminObjectUsing Jython:
print AdminConfig.required('J2CAdminObject')Example output:
Attribute Type adminObject AdminObject@
$AdminConfig list AdminObject $newraUsing Jython:
print AdminConfig.list('AdminObject', $newra)
set ao AdminObjectId set name [list name J2CAO1] set jname [jndiName eis/j2cao1] set j2caoAttrs [list $name $jname]Using Jython:
ao = AdminObjectId name = ['name', 'J2CAO1'] set jname = ['jndiName', eis/j2cao1] j2caoAttrs = [name, jname]
set cdattr [list adminObject $ao]Using Jython:
cdattr = ['adminObject', ao]
$AdminConfig create J2CAdminObject $newra $j2caoAttrsUsing Jython:
print AdminConfig.create('J2CAdminObject', newra, j2caoAttrs)Example output:
J2CAO1(cells/mycell/nodes/mynode|resources.xml#J2CAdminObject_1)
Related concepts
AdminConfig object for scripted administration
AdminTask object for scripted administration
Related reference
Commands for the AdminConfig object
Commands for the AdminTask object