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
To modify class loader modes for an application, perform the following steps:
Steps for this task
set dep [$AdminConfig getid /Deployment:ivtApp/]
dep = AdminConfig.getid('/Deployment:ivtApp/')
set depObject [$AdminConfig showAttribute $dep deployedObject]
depObject = AdminConfig.showAttribute(dep, 'deployedObject')
set classldr [$AdminConfig showAttribute $depObject classloader]
classldr = AdminConfig.showAttribute(depObject, 'classloader')
$AdminConfig showall $classldr
{libraries {}} {mode PARENT_FIRST}
print AdminConfig.showall(classldr)
[libraries []] [mode PARENT_FIRST]
$AdminConfig modify $classldr {{mode PARENT_LAST}}
AdminConfig.modify(classldr, [['mode', 'PARENT_LAST']])
$AdminConfig showall $classldr
{libraries {}} {mode PARENT_LAST}
AdminConfig.showall(classldr)
[libraries []] [mode PARENT_LAST]
Related concepts
AdminConfig object for scripted administration
Related reference
Commands for the AdminConfig object