Flash (Alert)
Abstract
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.
Content
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.
WAS_CEv3.0.0.0_SharedLib_201210203.zip
WAS_CEv3.0.0.0_SharedLib_20120203.zip
2. Update <WAS_CE_HOME>\var\config\config.xml to add 2 modules information like this
<module name="org.apache.geronimo.configs/sharedlib-extender/3.0-w20110721/car"/>
<module name="org.apache.geronimo.configs/sharedlib/3.0-w20110721/car"/>
3. Start the server with the cache cleaned, for example,
<WAS_CE_HOME>\bin\startup.bat -c
<WAS_CE_HOME>/bin/startup.sh -c
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">
<attribute name="baseDir">var/shared</attribute>
<attribute name="classesDirs">classes</attribute>
<attribute name="libDirs">lib</attribute>
<reference name="ServerInfo">
<name>ServerInfo</name>
</reference>
</gbean>
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
Related information
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.