Before you begin
Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.Why and when to perform this task
Perform the following steps to configure a J2C administrative object:
Steps for this task
Using Jacl:
set newra [$AdminConfig getid /Cell:mycell/Node:mynode/J2CResourceAdapter:RAR1/]
newra = AdminConfig.getid('/Cell:mycell/Node:mynode/J2CResourceAdapter:RAR1/') print newra
RAR1(cells/mycell/nodes/mynode|resources.xml#J2CResourceAdapter_1)
$AdminTask listAdminObjectInterfaces $newra
AdminTask.listAdminObjectInterfaces(newra)
com.ibm.test.message.FVTMessageProvider
$AdminTask createJ2CAdminObject $newra { -name ao1 -jndiName eis/ao1 -adminObjectInterface com.ibm.test.message.FVTMessageProvider }
AdminTask.createJ2CAdminObject(newra, ['-name', 'ao1', '-jndiName', 'eis/ao1', '-adminObjectInterface', 'com.ibm.test.message.FVTMessageProvider'])
$AdminConfig required J2CAdminObject
print AdminConfig.required('J2CAdminObject')
Attribute Type adminObject AdminObject@
$AdminConfig list AdminObject $newra
print AdminConfig.list('AdminObject', $newra)
set ao AdminObjectId set name [list name J2CAO1] set jname [jndiName eis/j2cao1] set j2caoAttrs [list $name $jname]
ao = AdminObjectId name = ['name', 'J2CAO1'] set jname = ['jndiName', eis/j2cao1] j2caoAttrs = [name, jname]
set cdattr [list adminObject $ao]
cdattr = ['adminObject', ao]
$AdminConfig create J2CAdminObject $newra $j2caoAttrs
print AdminConfig.create('J2CAdminObject', newra, j2caoAttrs)
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