- This topic has 3 replies, 2 voices, and was last updated 10 years, 10 months ago by support-swapna.
-
AuthorPosts
-
Bili PelesParticipantHello.
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
support-swapnaModeratorHi,
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.
Bili PelesParticipantHello
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
support-swapnaModeratorHi,
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” xmlns:libraries=”http://www.ibm.com/websphere/appserver/schemas/5.0/libraries.xmi”>
<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.
-
AuthorPosts