Shared library in Websphere 7

blackberry dev picture blackberry dev · Jun 9, 2014 · Viewed 20.2k times · Source

I am deploying my EAR on WAS 6 having 3 modules, in all of those 3 modules there are many jar files it makes my EAR heavy, to avoid that i want to use Shared Library wizard of Websphere. Please provide me link or tell me what changes i have to make in my code or resource or any .xml files. I am using below link to configure my JARs in Websphere Websphere Shared Library link 1 Link 2 Link 3

Thanks in advance

Answer

JSR picture JSR · Jun 9, 2014

This is how shared libray is referenced.

Logon to the Websphere Application Server console.

  • Go to Environment -> Shared Libraries
    1. Create your own Shared Library. Add the classpath pointing to your JAR files.
    2. Apply and save this configuration.
    3. Now, Go to Servers -> Application Servers -> Select the server-> Java and Process Management -> ClassLoader.
    4. Click on that class loader.
    5. Click on the Shared Library References
    6. Click on Add.
    7. Add your shared library.
    8. Save and restart Websphere Servers.