Netbeans IDE中的企业应用程序项目和Web项目应用程序之间的差异 [英] Difference between an Enterprise application project and a Web project application in Netbeans IDE

查看:190
本文介绍了Netbeans IDE中的企业应用程序项目和Web项目应用程序之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请问我想了解 netbeans IDE中Jave EE项目和Java Web项目之间关于 EJB <的主要区别/ code>。实际上,您可以在 Netbeans中基于 EJB JPA 和JavaServer Faces创建Web应用程序 IDE 选择Java Web类别

Please I would like to know the major difference between a Jave EE project and a Java Web project in netbeans IDE with respect to the EJB. In fact you can create a web application based on EJB, JPA and JavaServer Faces in Netbeans IDE if you choose the Java Web category.

另一方面,选择项目类别为Jave EE项目,NetBeans IDE将创建3个子项目,例如:StoreApp(Enterprise)应用程序项目),StoreApp-ejb(EJB项目)和StoreApp-war(Web项目)。

On the other hand you choose the project category as Jave EE project, NetBeans IDE will create 3 sub-projects, e.g: StoreApp (Enterprise Application project), StoreApp-ejb (EJB project), and StoreApp-war (Web project).

推荐答案

第一个将打包为单个.war文件,第二个打包为.ear文件,包含web .war和EJB .jar。

The first one will be packaged as a single .war file, the second one will be packaged as an .ear file, containing the web .war and the EJB .jar.

之间的区别这里处理起来有点宽泛,但除非你知道你想要/需要,否则我不建议创建EAR。

The difference between these is a bit broad to handle here, but I wouldn't advise on creating EARs unless you know that you want/need to.

这篇关于Netbeans IDE中的企业应用程序项目和Web项目应用程序之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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