Configurazione delle applicazioni che verranno avviate da Agent Controller

Una delle funzioni di Agent Controller è la possibilità di consentire al client remoto di avviare le applicazioni sull'host locale. In order to do this, a configuration description for the application must be specified in the Agent Controller configuration file. This description is specified via <Application> element and its children.  Only application descriptions that are provided by the <Application> elements in the active configuration can be launched by the Agent Controller.

Creazione di una descrizione di configurazione

Per creare una descrizione di configurazione, procedere come segue:

  1. Individuare il file di configurazione serviceconfig.xml. Vedere l'attività correlata.
  2. Aprire il file in un editor ed aggiungere l'elemento <Application>. The application must be identified by an alias name and also the fully qualified path of the executable that this alias represents.
    For example, if you want to create a configuration for an application with the alias name of TestApplication representing a real executable <testapp_dir>/testapp on the local host, you would add this fragment:
    <Application configuration="default" executable="TestApplication" path="<testapp_dir>/testapp" 
    location="<working_dir>">
    <Variable name="PATH" value="<testapp_dir>" position="prepend"/>
    </Application>

This fragment describes an application called TestApplication that maps to the executable <testapp_dir>/testapp.  When it is launched, its preferred execution working directory is the directory <working_dir>. Also, TestApplication will have its PATH variable prepended with <testapp_dir> directory.

The remote client can only ask the Agent Controller to launch TestApplication and has no notion of what actual executable is being run as a result of this request. Inoltre, non è possibile elencare in remoto le descrizioni delle applicazioni disponibili.  As a result, the Agent Controller needs to be properly configured in order to respond to a remote client's request to run an application.


Nota: le descrizioni delle applicazioni possono sostituire o aumentare i valori delle variabili di ambiente per l'applicazione da lanciare, nonché sostituire o estendere i parametri forniti all'eseguibile dell'applicazione al momento dell'avvio.

Argomenti correlati
Agent Controller

Attività correlate
Individuazione dei file di configurazione
Gestione di Agent Controller
 


(C) Copyright IBM Corporation 2000, 2006. Tutti i diritti riservati.