Accessing third-party APIs from a Java EE application
By default, Java™ EE applications do not have access
to the third-party APIs available in Liberty.
To enable this access, the application must be configured in the server.xml
file,
or an included file.
The latest documentation about class loader configuration for Liberty is available on the Open Liberty website.
About this task
In the following example, an application that is called Scholar
needs access to
the third-party APIs that are available in Liberty.
The application also uses a common library called Alexandria
. This library is
located in the ${server.config.dir}/mylib/Alexandria directory.
Avoid trouble: Third-party APIs might not remain compatible after an
upgrade. For more information, see Liberty externals support.