Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Java EE and Java Web [closed]

My intent is to learn Java EE so when I start a project in netbeans, I can choose from Java EE and Java Web. The problem is, that I don't fully understand what is the difference between these two and which one to choose. I have some basics on JSP, JSF, Servlets. I guess all server side stuff is enterprise. So what are extra features of Java EE compared to Java Web?

like image 453
shadox Avatar asked Nov 05 '25 11:11

shadox


2 Answers

In NetBeans, java web refers to simple java web applications that can run in a light-weight container like Tomcat or Jetty. J2EE is intended to be run in a full Application Server such as Glassfish, and contains java web components, EJBs and JPA ORM. If you're a novice and want to start with easy stuff the JavaWeb applications may be better for you. Here's a write up from NetBeans: https://netbeans.org/kb/trails/java-ee.html

like image 193
Randy Kamradt Sr. Avatar answered Nov 08 '25 12:11

Randy Kamradt Sr.


Both concepts are imprecisely used but ... OK, roughly speaking: Java EE is something broader than Java web. If you intend to use only technologies which a simple web container implementation (e.g. Tomcat) provides, then you're after a Java web project. If you intend to use additional technologies (say EJBs, or other EE technologies) then you need a full blown Java EE server (e.g. JBoss/WildFly). So I guess in your case you just need a Java web project.

For a full list of the Java EE technologies, see here:

http://www.oracle.com/technetwork/java/javaee/tech/index.html

like image 39
peter.petrov Avatar answered Nov 08 '25 11:11

peter.petrov