WebSphere Application Server - Express, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Modifying WAR class loader policies for applications using scripting

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

  1. Retrieve the configuration ID of the object that you want to modify and set it to the dep variable. For example:
    • Using Jacl:
      set dep [$AdminConfig getid /Deployment:MyApp/]
    • Using Jython:
      dep = AdminConfig.getid("/Deployment:MyApp/")
      
  2. Identify the deployed object and set it to the deployedObject variable. For example:
    • Using Jacl:
      set deployedObject [$AdminConfig showAttribute $dep deployedObject]
    • Using Jython:
      deployedObject = AdminConfig.showAttribute(dep, "deployedObject")
  3. Show the current attribute values of the configuration object with the show command, for example:
    • Using Jacl:
      $AdminConfig show $deployedObject warClassLoaderPolicy
      Example output:
      {warClassLoaderPolicy MULTIPLE}
    • Using Jython:
      AdminConfig.show(deployedObject, 'warClassLoaderPolicy')
      Example output:
      '[warClassLoaderPolicy MULTIPLE]'
  4. Modify the attributes of the configuration object with the modify command, for example:
    • Using Jacl:
      $AdminConfig modify $deployedObject {{warClassLoaderPolicy SINGLE}}
    • Using Jython:
      AdminConfig.modify(deployedObject, [['warClassLoaderPolicy', 'SINGLE']])
  5. Verify the changes that you made to the attribute value with the show command, for example:
    • Using Jacl:
      $AdminConfig show $deployedObject warClassLoaderPolicy
      Example output:
      {warClassLoaderPolicy SINGLE}
    • Using Jython:
      AdminConfig.show(deployedObject, 'warClassLoaderPolicy')
      Example output:
      '[warClassLoaderPolicy SINGLE]'



Related concepts
AdminConfig object for scripted administration

Related reference
Commands for the AdminConfig object

Task topic    

Terms of Use | Feedback

Last updated: Jun 8, 2005 12:45:23 PM EDT
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/txml_warclass.html

© Copyright IBM Corporation 2004, 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)