Difference between an Enterprise application project and a Web project application in Netbeans IDE

心不动则不痛 提交于 2019-12-14 03:46:21

问题


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.

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).


回答1:


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.

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.




回答2:


I think you should learn firstly about web server and a application server.. well i'll happy to help you.

1) we cannot run enterprise application in web server.. i.e. if u are using EJB etc. to run this EJB project you have to use Application Server like JBoss and many more.

2) while using web server it cannot load any heavy application means if your application having multiple users , in that case connection pooling will come into the picture. for connection pooling Application server much better then web server.

For more you can visit below link:-

What is the difference between application server and web server?

I hope it'll helps you

Thanks!!!




回答3:


There are 3 kinds of project/application:

  1. Standalone Java application and sometimes call it as swing application. Bundle it in the form of Jar and you can run this application without any web or application server.
  2. Web-application: Basically we have to create a war which is combined with html/jsp,jar etc. This war file has to deployed into webcontainer.

  3. Enterprise Application: We have to create a EAR file which is combined with war, EJB & jar. This has to deployed into application server.




回答4:


A very helpful tutorial https://www.youtube.com/watch?v=6vMB3rzN_Xw

Hope this helpes... cheers!!!



来源:https://stackoverflow.com/questions/20758049/difference-between-an-enterprise-application-project-and-a-web-project-applicati

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!