Editing application configurations using the wsadmin scripting tool

Use the wsadmin tool to configure application settings.

About this task

You can use the AdminApp edit or editInteractive command to change an entire application or a single application module.

You can set or update a configuration value using options in batch mode. To identify which configuration object is to be set or updated, the values of read only fields are used to find the corresponding configuration object. All the values of read only fields have to match with an existing configuration object, otherwise the command fails.

You can use pattern matching to simplify the task of supplying required values for certain complex options. Pattern matching only applies to fields that are required or read only.

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.

Procedure

  1. Inicie a ferramenta de script wsadmin.
  2. Edit the entire application or a single application module. Use one of the following commands:
    • The following command uses the installed application and the command option information to edit the application:

      • Using Jacl:
        $AdminApp edit appname {options}
      • Using Jython list:
        AdminApp.edit('appname', ['options'])
      • Using Jython string:
        AdminApp.edit('appname', '[options]')
      Table 1. AdminApp edit command description. Run the edit command with the name of the application or module.
      Element Description
      $ is a Jacl operator for substituting a variable name with its value
      AdminApp is an object that supports application object management
      edit is an AdminApp command
      appname is the name of application or application module to edit. For the application module name, use the module name returned from listModules command as the value.
      {options} is a list of edit options and tasks similar to the ones for the install command
    • The following command changes the application information by prompting you through a series of editing tasks:

      • Using Jacl:
        $AdminApp editInteractive appname
      • Using Jython:
        AdminApp.editInteractive('appname')
      Table 2. AdminApp editInteractive command description. Run the editInteractive command with the name of the application or module.
      Element Description
      $ is a Jacl operator for substituting a variable name with its value
      AdminApp is an object that supports application object management
      editInteractive is an AdminApp command
      appname is the name of application or application module to edit. For the application module name, use the module name returned from listModules command as the value.
  3. Save the configuration changes.
    Utilize o seguinte exemplo de comando para salvar suas alterações de configuração:
    AdminConfig.save()
  4. In a network deployment environment only, synchronize the node.
    Utilize os scripts syncActiveNode ou syncNode na biblioteca de scripts AdminNodeManagement para propagar as alterações de configuração para o(s) nó(s).
    • Utilize o script syncActiveNodes para propagar as alterações para cada nó na célula, conforme demonstra o seguinte exemplo:
      AdminNodeManagement.syncActiveNodes()
    • Utilize o script syncNode para propagar as alterações para um nó específico, conforme demonstra o seguinte exemplo:
      AdminNodeManagement.syncNode("myNode")

Í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_editapp
Nome do arquivo: txml_editapp.html