eclipse 不同类型的 Java EE 项目
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2085374/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Different kind of Java EE projects
提问by nanda
What is the different between different kind of Java EE projects in Eclipse WTP?
Eclipse WTP 中不同类型的 Java EE 项目有什么不同?
There are:
有:
- Application Client Project
- Connector Project
- Enterprise Application Project
- Utility Project
- 应用客户项目
- 连接器项目
- 企业应用项目
- 公用事业项目
回答by Pascal Thivent
Quoting the Chapter 5. Projectsof the RAD v7, Programming Guide(applies to Eclipse too):
引述第5章项目的的RAD V7,编程指南(适用于Eclipse的太):
- Application Client Project (J2EE)— Guides the user through creating an empty Application Client project. Includes prompts for the associated EAR project and a list of facets applicable for J2EE Application Client projects.
- Connector Project (J2EE)— Guides the user through creating a J2EE connector project, which includes specifying the associated enterprise application project and a set of facets applicable to it.
- Enterprise Application Project (J2EE)— Creates a new EAR project. This includes options for creating associated Web, EJB, and Application Client projects.
- Utility Project (J2EE)— Assists in the construction of a Java utility library project which is associated with an Enterprise Application project. The product of such a project is a JAR file that is available to the resources within the Enterprise project and is automatically wrapped into the EAR file when it is exported.
- 应用程序客户端项目 (J2EE)— 指导用户创建一个空的应用程序客户端项目。包括关联 EAR 项目的提示和适用于 J2EE 应用程序客户端项目的方面列表。
- 连接器项目 (J2EE)— 指导用户创建 J2EE 连接器项目,其中包括指定关联的企业应用程序项目和适用于它的一组方面。
- 企业应用程序项目 (J2EE)— 创建一个新的 EAR 项目。这包括用于创建关联的 Web、EJB 和应用程序客户端项目的选项。
- 实用程序项目 (J2EE)— 协助构建与企业应用程序项目相关联的 Java 实用程序库项目。此类项目的产品是一个 JAR 文件,可用于 Enterprise 项目中的资源,并在导出时自动包装到 EAR 文件中。
This is detailed a few pages later:
这在几页后详述:
Enterprise Application project
Enterprise Application projects contain the resources needed for enterprise applications and can contain references to a combination of Web modules, EJB modules, application client modules, resource adapter modules, utility Java projects, and JAR files.
These relationships can be specified when creating a new Enterprise Application project through the wizard or through the project properties.
For more information on developing J2EE enterprise applications, see Chapter 16, “Develop Web applications using EJBs” on page 719.
J2EE Application Client project
J2EE Application Client projects contain the resources needed for J2EE application client modules. An application client module is used to contain a fully-functioning client Java application (non-Web-based) that connects to and uses the J2EE resources in a J2EE enterprise application and an application server. By holding a reference to the associated enterprise application, it shares information such as the Java Naming and Directory Interface (JNDI) reference to EJBs and data sources.
Connector project
A connector project contains the resources required for a J2EE resource adapter. The wizard allows a set of facets (including the J2EE Connector Architecture (JCA) version) and containing EAR file to be specified.
企业应用项目
企业应用程序项目包含企业应用程序所需的资源,并且可以包含对 Web 模块、EJB 模块、应用程序客户端模块、资源适配器模块、实用程序 Java 项目和 JAR 文件组合的引用。
通过向导或通过项目属性创建新的企业应用程序项目时,可以指定这些关系。
有关开发 J2EE 企业应用程序的更多信息,请参见 第 719 页的第 16 章“使用 EJB 开发 Web 应用程序”。
J2EE 应用程序客户端项目
J2EE 应用程序客户端项目包含 J2EE 应用程序客户端模块所需的资源。应用程序客户端模块用于包含功能齐全的客户端 Java 应用程序(非基于 Web 的),该应用程序连接到并使用 J2EE 企业应用程序和应用程序服务器中的 J2EE 资源。通过持有对关联企业应用程序的引用,它共享信息,例如对 EJB 和数据源的 Java 命名和目录接口 (JNDI) 引用。
连接器项目
连接器项目包含 J2EE 资源适配器所需的资源。该向导允许指定一组方面(包括 J2EE 连接器体系结构 (JCA) 版本)并包含 EAR 文件。
Short version: they are all wizards to create an Enterprise Application or its parts.
简短版本:它们都是创建企业应用程序或其部件的向导。