Product Information > JADE Web Application Guide > Chapter 3 - Configuring Web Applications > application element

application element

The application XML element contains the following attributes.

The application type can be a JadeForms application, an HTMLDocuments application, a WebServices provider application, or a RestServices application. For details, see "Connecting to JADE Applications from Internet Information Server (IIS)" or "Connecting to JADE Applications from an Apache HTTP Server", in Chapter 3 of the JADE Installation and Configuration Guide.

You can repeat the application element to specify configuration information for a number of applications. The special name global is used for configuration information that applies to all applications.

In the following example, there is configuration that applies globally to all applications, specific configuration information for WebApp1, and specific configuration information for WebApp2.

<?xml version="1.0"?>
<jade_config>
    <application schema="WebAppSchema" name="global" id="">
        // configuration info applying to all applications
    </application>
    <application schema="WebAppSchema" name="WebApp1" id="">
        // configuration info specific to WebApp1
    </application>
    <application schema="WebAppSchema" name="WebApp2" id="">
        // configuration info specific to WebApp2
    </application>
</jade_config>

The id attribute is used to enable the same application to be run with different configuration settings. In the following example, the WebApp application can be run with the id="200" configuration settings or the id="300" configuration settings.

<?xml version="1.0"?>
<jade_config>
    <application schema="WebAppSchema" name="WebApp" id="200">
        // configuration info specific to WebApp run with id "200"
    </application>
    <application schema="WebAppSchema" name="WebApp" id="300">
        // configuration info specific to WebApp run with id "200"
    </application>
</jade_config>

The following shortcut runs the WebApp application with the id="300" configuration settings.

jade.exe path=d:\webapp ini=c:\jade\system\jade.ini schema=WebAppSchema app=WebApp endJade id=300