How do I specify a link to a shared library at the web module level in Websphere 6.1 deployment descriptors?

I am working on a web application that is deployed to Websphere as a war file contained inside the auricle. There are no other modules in the ear. The shared library was created in the cell area in the Websphere admin console, and I can provide a link to the shared library at the web module level in the admin console. Everything works fine when I do this, until I deploy and reinstall the application, which, of course, leads to the disappearance of the link to the shared library.

I would like to provide a link to a shared library in deployment descriptors for war or ear, but I'm not sure how to do this at the web module level. Does anyone know if a link to a shared library can be referenced at the web module level through deployment descriptors in a war or ear file?

EDIT: This screenshot shows a link to a shared library created in the admin console. My goal is to have the same link to the shared library created using deployment descriptors, so that every time the application is not deployed and redistributed, the link to the shared library does not need to be recreated in the admin console.

cdmKA.png

+4
source share
1 answer

You cannot specify shared library dependencies in the deployment descriptor, but you can specify them in MANIFEST.MF using the Installed Optional Packages support

+5
source

Source: https://habr.com/ru/post/893469/


All Articles