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 WAR class loader policies for an application, perform the following steps:
Steps for this task
set dep [$AdminConfig getid /Deployment:MyApp/]
dep = AdminConfig.getid("/Deployment:MyApp/")
set deployedObject [$AdminConfig showAttribute $dep deployedObject]
deployedObject = AdminConfig.showAttribute(dep, "deployedObject")
$AdminConfig show $deployedObject warClassLoaderPolicy
{warClassLoaderPolicy MULTIPLE}
AdminConfig.show(deployedObject, 'warClassLoaderPolicy')
'[warClassLoaderPolicy MULTIPLE]'
$AdminConfig modify $deployedObject {{warClassLoaderPolicy SINGLE}}
AdminConfig.modify(deployedObject, [['warClassLoaderPolicy', 'SINGLE']])
$AdminConfig show $deployedObject warClassLoaderPolicy
{warClassLoaderPolicy SINGLE}
AdminConfig.show(deployedObject, 'warClassLoaderPolicy')
'[warClassLoaderPolicy SINGLE]'
Related concepts
AdminConfig object for scripted administration
Related reference
Commands for the AdminConfig object