EAR 文件和“WebSphere Enhanced EAR"之间有什么区别? [英] What is the difference between an EAR file and a "WebSphere Enhanced EAR"?

查看:20
本文介绍了EAR 文件和“WebSphere Enhanced EAR"之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有一个标准 EAR 文件(以及用于生成它的源文件),需要进行哪些额外的处理才能将其转换为 IBM WebSphere增强型 EAR"?

Supposing that I have a standard EAR file (and the source files that were used to generated it,) what additional processing needs to be done to convert it to an IBM WebSphere "Enhanced EAR"?

问这个问题的另一种方式是问:增强型 EAR 和标准 EAR 之间有什么区别?"

Another way to ask this question would be to ask, "What is the difference between an Enhanced EAR and a standard EAR?"

我非常清楚 Rational 开发工具(RAD 和 RSA)中有工具.但是,就这个问题而言,我需要在自动构建中完成相同的任务(通过 Ant 或 Maven.)

I'm very aware that there is tooling in the Rational development tools (RAD and RSA.) But, for the purpose of this question, I need to accomplish the same task in an automated build (via either Ant or Maven.)

推荐答案

问这个问题的另一种方式是问:增强型 EAR 和标准 EAR 之间有什么区别?"

Another way to ask this question would be to ask, "What is the difference between an Enhanced EAR and a standard EAR?"

增强型 EAR 是将一些 XML 文件添加到 META-INF 目录以在应用程序、服务器或单元级别配置特定资源的 EAR(请参阅 IBM 红皮书 WebSphere Application Server V7:打包应用程序以进行部署 了解更多详情).

An enhanced EAR is an EAR with some XML files added to the META-INF directory to configure specific resources at the application, server or cell level (see the IBM Redbook WebSphere Application Server V7: Packaging Applications for Deployment for more details on this).

J2EE Packaging、Enhanced EARs 和 Application Server Toolkit 的表 23-1 (pdf) 列出了这些文件:

Table 23-1 of J2EE Packaging, Enhanced EARs, and the Application Server Toolkit (pdf) lists these files:

替代文字 http://img46.imageshack.us/img46/6751/table231.png

文件位于 META-INF 目录下,将它们嵌入 Ant 或 Maven 的标准 EAR 中应该非常简单,只需在打包前将它们放入 META-INF.

The files being located under the META-INF directory, embedding them in a standard EAR from Ant or Maven should be pretty straight forward, just put them in the META-INF before packaging.

如果您必须从头开始生成这些文件(恕我直言,这没有任何意义),那么这真的是另一回事,我不确定这些文件的结构是否公开可用.

If you have to generate these files from scratch (this wouldn't make sense IMHO), then it's really another story and I'm not sure that the structure of these files is publicly available.

说真的,如果您想使用该功能,请找到一种从 WebSphere Enhanced EAR 编辑器生成文件的方法.也许可以获得 RAD 的试用版来评估此功能 >:) 或者联系 IBM,我相信他们会很乐意帮助向您出售一些东西,甚至是一个许可证.

Seriously, if you want to use that feature, find a way to generate the files from the WebSphere Enhanced EAR editor. Maybe get a trial version of RAD to evaluate this feature >:) Or contact IBM, I'm sure they will be happy to helpsell you something, even a single license.

更新: IBM 提供了 Ant Tasks 用于 WebSphere,您也可以使用 antrun 插件从 Maven 使用(这似乎是首选方式)但我不认为 wsDefaultBindings 正是您要找的,默认 IBM WebSphere Bindings 不不提供与增强型 EAR 相同的功能 - 但它们可能很有用并且足够了.以防万一,如果您决定使用 wsadmin 任务而不是增强型 EAR,这里是 选项列表.

UPDATE: IBM provides Ant Tasks for WebSphere that you could also use from Maven using the antrun plugin (this seems to be the preferred way) but I don't think that wsDefaultBindings is exactly what you're looking for, default IBM WebSphere Bindings don't offer the same features than Enhanced EAR - but they might be useful and enough though. Just in case, if you ever decide to use the wsadmin task instead of Enhanced EAR, here is a list of options.

这篇关于EAR 文件和“WebSphere Enhanced EAR"之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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