WAS v8.5 > Deploy applications > Deploy applications to the Liberty profileSharing common OSGi bundles for the Liberty profile
We can share common OSGi bundles by placing them in a directory and configure server.xml for the server so that those common OSGi bundles are available to your enterprise applications.
- Create a directory in your file system and place all the common OSGi bundles into the directory.
- Add the following lines into server.xml.
< bundleRepository> < fileset dir="directory_path" include="*.jar"/> </bundleRepository>Where directory_path is the path to the directory containing the common OSGi bundles.- Define a dependency on the common bundle using import phrase in the manifest.mf file of the application.
Parent topic: Deploy applications to the Liberty profile
|