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 new referenceable:
Steps for this task
Using Jacl:
set newrep [$AdminConfig getid /Cell:mycell/Node:mynode/ ResourceEnvironmentProvider:REP1/]
newrep = AdminConfig.getid('/Cell:mycell/Node:mynode/ ResourceEnvironmentProvider:REP1/') print newrep
REP1(cells/mycell/nodes/mynode|resources.xml#ResourceEnvironmentProvider_1)
Using Jacl:
$AdminConfig required Referenceable
print AdminConfig.required('Referenceable')
Attribute Type factoryClassname String classname String
Using Jacl:
set fcn [list factoryClassname REP1] set cn [list classname NM1] set refAttrs [list $fcn $cn]
fcn = ['factoryClassname', 'REP1'] cn = ['classname', 'NM1'] refAttrs = [fcn, cn] print refAttrs
{factoryClassname {REP1}} {classname {NM1}}
Using Jacl:
set newref [$AdminConfig create Referenceable $newrep $refAttrs]
newref = AdminConfig.create('Referenceable', newrep, refAttrs) print newref
(cells/mycell/nodes/mynode|resources.xml#Referenceable_1)
Related concepts
AdminConfig object for scripted administration
Related reference
Commands for the AdminConfig object