How can I specify a shared library reference at the web module level in Websphere 6.1 deployment descriptors?

懵懂的女人 提交于 2019-12-12 12:02:52

问题


I am working on a web application that is deployed to Websphere as a war file contained inside a wrapper ear. There are no other modules within the ear. A shared library has been created at the cell scope in the Websphere admin console, and I can specify a shared library reference at the web module level in the admin console. Everything works great when I do this, until I undeploy and redeploy the application, which of course causes the shared library reference to disappear.

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

EDIT: this screenshot shows the shared library reference that was created in the admin console. My goal is to have the same shared library reference created via deployment descriptors, so that each time the app is undeployed and redeployed the shared library reference does not need to be recreated in the admin console.


回答1:


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



来源:https://stackoverflow.com/questions/4400575/how-can-i-specify-a-shared-library-reference-at-the-web-module-level-in-webspher

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!