Modifying WAR class loader policies for applications using wsadmin scripting

You can use scripting and the wsadmin tool to modify WAR class loader policies for applications.

Before you begin

Inicie a ferramenta de script wsadmin.

About this task

Attention: Se um aplicativo estiver em execução, a alteração de uma configuração do aplicativo fará com que ele seja reiniciado. Em servidores independentes, o aplicativo será reiniciado depois de salvar a alteração. Em produtos de vários servidores, o aplicativo reinicia após você salvar a alteração e os arquivos sincronizarem no nó onde o aplicativo está instalado. Para controlar quando a sincronização ocorrerá em produtos com vários servidores, cancele a seleção de Sincronizar Alterações com Nós na página de Preferências do Console.

Complete the steps in this topic to modify WAR class loader policies for an application.

Procedure

  1. Retrieve the configuration ID of the object that you want to modify and set it to a variable.

    For example, set the configuration ID to the dep variable. In this example, the object is the deployed application MyApp.

    • Using Jacl:
      set dep [$AdminConfig getid /Deployment:MyApp/]
    • Using Jython:
      dep = AdminConfig.getid("/Deployment:MyApp/")
  2. Identify the deployed object and set it to a variable.

    For example, set the deployed object to the depObject variable:

    • Using Jacl:
      set depObject [$AdminConfig showAttribute $dep deployedObject]
    • Using Jython:
      depObject = AdminConfig.showAttribute(dep, "deployedObject")
  3. Show the current attribute values of the configuration object with the show command.
    • Using Jacl:
      $AdminConfig show $depObject warClassLoaderPolicy
      Example output:
      {warClassLoaderPolicy MULTIPLE}
    • Using Jython:
      AdminConfig.show(depObject, 'warClassLoaderPolicy')
    Example output:
    '[warClassLoaderPolicy MULTIPLE]'
  4. Modify the attributes of the configuration object with the modify command.
    • Using Jacl:
      $AdminConfig modify $depObject {{warClassLoaderPolicy SINGLE}}
    • Using Jython:
      AdminConfig.modify(depObject, [['warClassLoaderPolicy', 'SINGLE']])
  5. Save the configuration changes.
    Utilize o seguinte exemplo de comando para salvar suas alterações de configuração:
    AdminConfig.save()
  6. Optional: Verify the changes that you made to the attribute value with the show command.
    • Using Jacl:
      $AdminConfig show $depObject warClassLoaderPolicy
      Example output:
      {warClassLoaderPolicy SINGLE}
    • Using Jython:
      AdminConfig.show(depObject, 'warClassLoaderPolicy')
      Example output:
      '[warClassLoaderPolicy SINGLE]'

Ícone que indica o tipo de tópico Tópico de Tarefa



Ícone de registro de data e hora Última atualização: July 9, 2016 7:58
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=txml_warclass
Nome do arquivo: txml_warclass.html