RESOURCE

This RESOURCE element defines general JGAS settings that can be used in the definition of applications and in external application configuration files.

Syntax

<RESOURCE Id=res-id [Source={"INTERNAL"|"ENVIRON"}]>res-data</RESOURCE>
  1. res-id is the unique identifier of the resource.
  2. The Source attribute specifies the location of the resource. This attribute is optional.
    The JGAS locates the resource based on the value of the Source attribute, if specified.
    • If Source is INTERNAL, the resource is resolved to the location provided.
    • If Source is ENVIRON, the resource is the name of an environment variable, which represents the location of the resource.
      Note: If Source is not specified, the resource defaults to INTERNAL.
  3. res-data is the value of the resource.

Child elements

There are no child elements.

Usage

You use this element to specify resources such as location of DVM, etc., within individual application or service configurations. Resources are defined in the RESOURCES (for JGAS) element of the JGAS configuration file.

Source INTERNAL usage example

A resource defined with a reference to the internal location of the DVM or runtime program.
<RESOURCE Id="res.dvm.wa" Source="INTERNAL">$(res.fgldir)/bin/fglrun.exe</RESOURCE>

Source ENVIRON usage example

In this example, the resource "res.os " contains the value of the environment variable OS. For example, on a Windows® system, the environment variable OS could have the value "Windows_NT".
<RESOURCE Id="res.os" Source="ENVIRON">OS</RESOURCE>

Parent elements

This element is a child of one of the following elements: