Show TOC Start of Content Area

Process documentation Referencing Libraries in Applications  Locate the document in its SAP Library structure

Purpose

Applications can use J2EE Engine libraries using two types of references:

·        Explicit references

These are defined to libraries that are deployed as modules on the J2EE Engine.

·        Implicit references

These are defined for libraries available in the application classpath.

In the SAP NetWeaver Developer Studio, you need to describe the references to be able to compile the application components, and to enable them to request the necessary libraries on the J2EE Engine.

Process Flow

In the SAP NetWeaver Developer Studio, you describe the references to libraries in two ways:

...

       1.      In the Java build path of Web or EJB projects.

This is necessary for the successful compilation of the projects. The procedure is different for implicitly and explicitly referenced libraries. For more information, see Declaring Explicit References to Libraries and Declaring Implicit References to Libraries respectively.

       2.      In the application-j2ee-engine.xml deployment descriptor of the Enterprise project.

This is necessary for the J2EE Engine to provide the application with the libraries it needs. It applies only to explicitly referenced libraries.

You can reference libraries created in Library projects in the SAP NetWeaver Developer Studio, or default libraries installed on the J2EE Engine.

Note

In the SAP NetWeaver Developer Studio, you can reference libraries in Library projects that are not deployed on the J2EE Engine yet (for example, libraries that are still being developed). Do not forget to deploy the libraries that are referenced before deploying your application on the J2EE Engine.

End of Content Area