APPLICATION (for application)

This APPLICATION element defines an application in an external application configuration file.

Syntax

<APPLICATION [Id=app-name] 
    [mode=mode-name]>
   [<DESCRIPTION>...</DESCRIPTION>]
   [<RESOURCE>...</RESOURCE>] [...]
   [<EXECUTION>...</EXECUTION>]
   [<AUTO_LOGOUT>...</AUTO_LOGOUT>] 
   [<UA_OUTPUT>...</UA_OUTPUT>]
   [<HTTP>...</HTTP>]
</APPLICATION>
  1. The app-name attribute identifies the application. For external configuration files, the Id attribute is ignored. The Id specified is compared to the application name in the request.
  2. The SinglePageApplications attribute identifies the applications defined under the APPLICATIONS element of the xcf file as a group of one or more independent applications that can be run in the same HTML page of the Genero Browser Client as the main application.
  3. The mode-name attribute when set to "sticky", defines a web service as a sticky web service. See the Configure sticky Web services topic in the Genero Application Server User Guide.

Child elements

The APPLICATION element may contain the following elements:

  1. Zero or one DESCRIPTION element.
  2. Zero or more RESOURCE elements.
  3. Zero or one EXECUTION (under APPLICATION for JGAS) elements.
  4. Zero or one AUTO_LOGOUT (for JGAS) elements.
  5. Zero or one UA_OUTPUT elements. This element is used for all UI applications.
  6. Zero or one HTTP (Dedicated) element.

Usage

You use this element to configure Web applications you wish to make accessible through the JGAS.

Example external Web application configuration file

<?xml version="1.0" encoding="UTF-8"?>
  <APPLICATION>
    <EXECUTION>
      <PATH>$(res.path.fgldir.demo)</PATH>
      <MODULE>demo.42r</MODULE>
    </EXECUTION>
    <AUTO_LOGOUT>
      <TIMEOUT>$(app.timeout.autologout)</TIMEOUT>
    </AUTO_LOGOUT>
    <UA_OUTPUT>
      <PROXY>$(res.uaproxy.cmd)</PROXY>
      <PUBLIC_IMAGEPATH>$(res.public.resources)</PUBLIC_IMAGEPATH>
      <GBC>gwc-dev</GBC>
      <TIMEOUT Using="cpn.wa.timeout"/>
    </UA_OUTPUT>
</APPLICATION>

For more information, see Configuring applications on JGAS.

Parent elements

When used in an application configuration file (.xcf), it is the top-most element.