Shared Libraries

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (6)

View Page History
By default this component uses a shared library called "petals-sl-ejb" which must contains the RMI client libraries of the EJB targeted EJB container with its JEE EJB specification.



h1. Anatomy of a shared library

h2. Content of a shared library

A shared library archive may look like this :

- my-jar-dependency3.jar{noformat}

Adding jar files to the archive is not sufficient. Each jar contained by the shared library must be declared within its JBI descriptor. 



h2. JBI descriptor of a shared library

Here is an exemple of such files (jbi.xml file) :
{code:lang=xml}<?xml version="1.0" encoding="UTF-8"?>
</jbi:jbi>{code}



h2. Using a shared library

Finally, to add this shared library to the component classpath you must add the following section to the JBI descriptor of the component just after the end of the "bootstrap-class-path" element :
{code:lang=xml}<shared-library>my-shared-library</shared-library>{code}

\\
{info:title=Info}
todo