如何在Websphere 6.1部署描述符中的Web模块级别指定共享库引用? [英] How can I specify a shared library reference at the web module level in Websphere 6.1 deployment descriptors?

查看:142
本文介绍了如何在Websphere 6.1部署描述符中的Web模块级别指定共享库引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个部署到Websphere的Web应用程序,作为包装在earper ear中的war文件。耳内没有其他模块。已在Websphere管理控制台的单元作用域中创建共享库,我可以在管理控制台中的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.

我想指定共享库战争或耳朵的部署描述符中的引用,但我不知道如何在Web模块级别执行此操作。有没有人知道是否可以通过war或ear文件中的部署描述符在Web模块级别指定共享库引用?

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?

编辑:此屏幕截图显示共享库引用这是在管理控制台中创建的。我的目标是通过部署描述符创建相同的共享库引用,这样每次取消部署和重新部署应用程序时,都不需要在管理控制台中重新创建共享库引用。

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.

推荐答案

您无法在部署描述符中指定共享库依赖项,但可以使用已安装的可选软件包支持

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

这篇关于如何在Websphere 6.1部署描述符中的Web模块级别指定共享库引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆