The application XML element contains the following attributes.
schema specifies the schema name
name specifies the name of the Web-enabled application to which the settings apply
id specifies an identifier string that enables copies of the same Web-enabled application to run with different configuration parameters
The application type can be a JadeForms application, an HTMLDocuments application, a WebServices provider application, or a RestServices application. For details, see "
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