APPLICATION (for application)
This APPLICATION
element defines an application within the Genero Application Server configuration file or in an
external application configuration file.
Syntax
<APPLICATION [
Id=app-name]
Parent=parent-app-name
[
SinglePageApplications={
"TRUE"|
"FALSE"}
]
xmlns:xsi=uri
xsi:noNamespaceSchemaLocation=schema
[
Abstract={
"TRUE"|
"FALSE"}
]
[
mode=mode-name]
>
[
<DESCRIPTION>...</DESCRIPTION>]
[
<RESOURCE>...</RESOURCE>]
[...]
[
<EXECUTION>...</EXECUTION>]
[
<AUTO_LOGOUT>...</AUTO_LOGOUT>]
[
<UA_OUTPUT>...</UA_OUTPUT>]
[
<END_URL>...</END_URL>]
[
<HTTP>...</HTTP>]
</APPLICATION>
- The app-name attribute identifies the application.
The
Id
attribute is required for applications defined within the Genero Application Server configuration file. For external configuration files, theId
attribute is ignored. TheId
specified is compared to the application name in the request. - The parent-app-name attribute identifies the parent application, or the application from which this application will inherit its default configuration settings.
- 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. - The uri defines the URL of the XML schema. The default value is "http://www.w3.org/2001/XMLSchema-instance".
- The schema attribute defines the XML schema instance. When defining external application files, the valid value for a web applications is "http://www.4js.com/ns/gas/version/cfextwa.xsd"
- The
Abstract
attribute defines whether this application configuration element is for an abstract application or a real application. Valid values are "TRUE" and "FALSE". An abstract application acts as a template and can not instantiate Virtual Machines. - The mode-name attribute when set to "sticky", defines a web service as a sticky web service.
Child elements
The APPLICATION
element may contain the following elements:
- Zero or one DESCRIPTION element.
- Zero or more RESOURCE elements.
- Zero or one EXECUTION (for application) elements.
- Zero or one AUTO_LOGOUT elements.
- Zero or one UA_OUTPUT elements. This element is used for all UI applications.
- Zero or one END_URL element.
- Zero or one HTTP (Dedicated) element.
Usage
You use this element to configure web applications you wish to make accessible through the GAS.
Example external web application configuration file
<?xml version="1.0" encoding="UTF-8"?>
<APPLICATION Parent="defaultgwc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.4js.com/ns/gas/5.00/cfextwa.xsd">
<EXECUTION>
<PATH>$(res.path.fgldir.demo)</PATH>
<MODULE>demo.42r</MODULE>
<ACCESS_CONTROL>
<ALLOW_FROM>$(res.access.control)</ALLOW_FROM>
</ACCESS_CONTROL>
</EXECUTION>
<AUTO_LOGOUT Using="cpn.wa.autologout"/>
<UA_OUTPUT>
<PROXY>$(res.uaproxy.cmd)</PROXY>
<PUBLIC_IMAGEPATH>$(res.public.resources)</PUBLIC_IMAGEPATH>
<GBC>gwc-dev</GBC>
<TIMEOUT> Using="cpn.wa.timeout"</TIMEOUT>
</UA_OUTPUT>
<END_URL>http://www.4js.com</END_URL>
</APPLICATION>
Parent elements
When used in an application configuration file (.xcf), it is the top-most element.
When used in the GAS configuration file, this element is a child of the APPLICATION_LIST element.