Show TOC

Connecting As an AS Java ApplicationLocate this document in the navigation structure

Use

To use the capabilities of the Application Configuration API, first you have to set the reference to it within your application. This enables Java applications deployed on AS Java to read their deployed properties via the Application Configuration API.

Procedure

In the application's application-j2ee-engine. xml deployment descriptor, set a reference to the Application-C onfiguration-Facade Service by including the following entry:

            <reference reference-type="hard">
    <reference-target target-type="service">
      tc~je~appconfiguration~api
    </reference-target>
</reference>

         

The application-j2ee-engine.xml is located in the enterprise archive's META-INF subfolder: More information about the structure and elements of application-j2ee-engine.xml : application-j2ee-engine.xsd .