What's the difference between EE and Spring

Source: Internet
Author: User
Tags glassfish wildfly

From: https://www.quora.com/What-is-the-difference-between-J2EE-and-Spring

Lot of people specially those who is new in Java world is confused with these Terms EE, Java EE, J2SE, JDK, Spring, EJB ' s etc.

Lets Keep it simple Stupid.

    • What's Java standard Edition.

(This would clear the confusion related to JDK, J2SE, Javase)

      1. In general, you can say this is the core of Java. ( The prime part)
      2. your need it, for developing desktop applications as well as web based applications.
      3. It provides everything from basic objects-to-level classes which is used for networking, database access, Securi Ty, XML parsing, GUI development.
      4. along with this core APIs, it also provides virtual machine (JVM), development tools, deployment technologies etc. (Ch Eck here for more details- JDK development Tools)
      5. Below diagram would Show you the version history of Java standard Edition. -Image taken From http://codingfox.com
      1. You can see the Java standard Edition is called by different names in different years. Hence these different names came into existent, which are now creating the confusion to beginners;)
      2. But JDK, J2SE, Javase is same core part of the Java, with more enhanced features and more classes and functionalities.
    • What is Java Enterprise Edition.

(This would clear confusion about EE, Java ee)

      1. Java Enterprise Edition is an abstract specification.
      2. The concrete implementation is so called as the application servers Like-glassfish, WildFly, WebLogic.
      3. When you download Java EE from Oracle ' s site, it'll give you GlassFish server with bunch of documentations and examples. So they is just providing the implementation of Java Enterprise Edition specification.
      4. You can also prefer to use the other implementations like RedHat WildFly which also follows these specifications.
      5. Below is the version History-taken from Imgur
      1. So, EE, Java EE is just the different versions.
    • Does EJB follows Java EE specifications?
      1. Yes, EJB is a part of Java EE specifications. Full fledge Java EE Application Server support EJB's out of the box.
      2. This means you can not run EJB applications on simple servlet container like Tomcat.
    • Does Spring follows "All" Java EE specifications?
      1. Strictly speaking NO
      2. Spring is a standalone framework, which have substituted and improves many parts of Java EE.
      3. You can consider the Spring as a integration platform that lets and all Java EE technologies.
      4. That's means you don ' t necessarily need the full fledge Java EE application Server to support.
      5. You can run it over simple servlet container like Tomcat.

Summary

So ee is a version name of the the abstract specification for Java Enterprise Edition from 1999 to 2003.

and Spring is a-a standalone integration platform (framework) with improvements and substitutions in Java EE which Also allows use Java EE technologies along with it.

What's the difference between EE and Spring

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.