如何在 Websphere 6.1 部署描述符中的 Web 模块级别指定共享库引用?
我正在开发一个 Web 应用程序,该应用程序作为包含在包装器 Ear 内的 war 文件部署到 Websphere。耳朵内没有其他模块。已在 Websphere 管理控制台的单元范围内创建了共享库,我可以在管理控制台的 Web 模块级别指定共享库引用。当我这样做时,一切都很好,直到我取消部署并重新部署应用程序,这当然会导致共享库引用消失。
我想在 war 或 Ear 的部署描述符中指定共享库引用,但我不确定如何在 Web 模块级别执行此操作。有谁知道是否可以通过 war 或 Ear 文件中的部署描述符在 Web 模块级别指定共享库引用?
编辑:此屏幕截图显示了在管理控制台中创建的共享库引用。我的目标是通过部署描述符创建相同的共享库引用,以便每次取消部署和重新部署应用程序时,不需要在管理控制台中重新创建共享库引用。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(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