Show TOC

Procedure documentationConnecting As an AS Java Application Locate this document in the navigation structure

 

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 Serviceby including the following entry:

Syntax Syntax

  1. <reference reference-type="hard">
        <reference-target target-type="service">
          tc~je~appconfiguration~api
        </reference-target>
    </reference>
    
End of the code.

The application-j2ee-engine.xmlis 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.