The shared library feature is to provide a common directory where you can install class files and JAR files that can be shared by multiple Java EE assets. It may be a convnient way for the developers to keep their classes or libraries while developing Java EE asset.
To add shared library feature into WAS Community Edition Server, Please refer this instruction:
1. Unzip the attached file into the WAS Community Edition installation directory, and ensure the files listed in the zip file replace the ones in the server installation.
2. Update <WAS_CE_HOME>\var\config\config.xml to add 2 modules information like this
3. Start the server with the cache cleaned, for example,
Finally, you can use the shared library feature. The default shared library location is <WAS_CE_HOME>\var\shared\. If you prefer to put the shared libraries at any other location of your file system, define them with a SharedLib GBean. For example,
<gbean name="SharedLib" class="org.apache.geronimo.system.sharedlib.SharedLib">
Note that you need to define a new attribute called "baseDir" in your SharedLib GBean definition, the "classDirs" and "libDirs" are all relative to the "baseDir" location.
About the detail usage of sharedlib feature, you can refer the instruction from WAS Community Edition 2.1.1.x documentation -> http://publib.boulder.ibm.com/wasce/V2.1.1/en/shared-library.html
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.