Create a new resource environment entry using wsadmin
Using Jacl:
set newrep [$AdminConfig getid /Cell:cell/Node:node/ResourceEnvironmentProvider:REP/] $AdminConfig required ResourceEnvEntry set name [list name REE1] set jndiName [list jndiName myjndi] set newref [$AdminConfig getid /Cell:cell/Node:node/Referenceable:/] set ref [list referenceable $newref] set reeAttrs [list $name $jndiName $ref] $AdminConfig create ResourceEnvEntry $newrep $reeAttrs $AdminConfig save
Using Jython
newrep = AdminConfig.getid('/Cell:cell/Node:node/ResourceEnvironmentProvider:REP/') print newrep print AdminConfig.required('ResourceEnvEntry') name = ['name', 'REE1'] jndiName = ['jndiName', 'myjndi'] newref = AdminConfig.getid('/Cell:cell/Node:node/Referenceable:/') ref = ['referenceable', newref] reeAttrs = [name, jndiName, ref] print AdminConfig.create('ResourceEnvEntry', newrep, reeAttrs) AdminConfig.save()