简体   繁体   English

如何在Websphere 6.1部署描述符中的Web模块级别指定共享库引用?

[英]How can I specify a shared library reference 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 a wrapper ear. 我正在开发一个部署到Websphere的Web应用程序,作为包装在earper ear中的war文件。 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. 已在Websphere管理控制台的单元作用域中创建共享库,我可以在管理控制台中的Web模块级别指定共享库引用。 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. 我想在war或ear的部署描述符中指定共享库引用,但我不确定如何在Web模块级别执行此操作。 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? 有没有人知道是否可以通过war或ear文件中的部署描述符在Web模块级别指定共享库引用?

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. 我的目标是通过部署描述符创建相同的共享库引用,这样每次取消部署和重新部署应用程序时,都不需要在管理控制台中重新创建共享库引用。

您无法在部署描述符中指定共享库依赖项,但可以使用Installed Optional Packages支持在MANIFEST.MF中指定它们

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM