facebook

Save Shared Library reference in Ear

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #347236 Reply

    Bili Peles
    Participant

    Hello.
    We use MyEclipse 2004 blue
    Our application uses the same WAS Shared Library reference
    Every time we make redeploy we need to define it by Administration Console
    Is any way to define the Shared Library on the EAR level in the application.xml for example ore in any other EAR configuration file

    #347263 Reply

    support-swapna
    Moderator

    Hi,

    You can open websphere configuration files editor from application.xml editor to generate WAS config files. Then you will need to manually add entries for shared libs configuration only. The configuration is located under META-INF/ibmconfig directory. All files will be deployed to the server and it will be up to WAS to run EAR with shared libraries.

    Let us know if you see any issues.

    #347316 Reply

    Bili Peles
    Participant

    Hello
    I had opened Websphere Configuration Files Editor through application.xml
    There is no way to define Shared Library through Websphere Configuration Files Editor as you said.
    Now I have a complex structure of files and directories under META-INF/ibmconfig
    What file I have to place and in what directory to define Shared Library
    Have you an example of the content of such file
    Thank you in advance

    #347382 Reply

    support-swapna
    Moderator

    Hi,

    Sorry for the delayed response.

    You need to create a file called libraries.xml under the META-INF folder of EAR at the following path : META-INF/ibmconfig/cells/defaultCell/nodes/defaultNode/servers/defaultServer/libraries.xml

    When you open Websphere Configuration Editor it creates ibmconfig folder under META-INF.

    The example content of the libraries.xml is as shown below:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <xmi:XMI xmi:version=”2.0″ xmlns:xmi=”http://www.omg.org/XMI&#8221; xmlns:libraries=”http://www.ibm.com/websphere/appserver/schemas/5.0/libraries.xmi”&gt;
    <libraries:Library xmi:id=”Library_1392892063963″ name=”SharedLib” description=”Lib1″ isolatedClassLoader=”true”>
    <classPath>cpentry</classPath>
    </libraries:Library>
    <libraries:Library xmi:id=”Library_1392892125764″ name=”SharedLib2″ description=”Lib2″ isolatedClassLoader=”false”>
    <classPath>cpentry1</classPath>
    <classPath>cpentry2</classPath>
    <nativePath>nativecp</nativePath>
    <nativePath>nativecp2</nativePath>
    </libraries:Library>
    </xmi:XMI>

    You will need to experiment with the contents of the file accordingly.

    Let us know how it works for you.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Save Shared Library reference in Ear

You must be logged in to post in the forum log in