Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Java EE and Spring framework [closed]

I am striving to know the difference between Java EE and Spring Framework. Could anyone please help me on this.

like image 287
Sid Avatar asked Dec 20 '10 14:12

Sid


People also ask

What is the difference between Java EE and Spring?

JavaEE is used for web development. Spring is used for a template design for an application.

Is Spring an alternative of Java EE?

Typically, Spring is not the replacement of Java EE but simply complementary to Java EE, as it well integrates with individual components of the Java EE. Because of this reason Spring is often called Java Spring framework.

Should I learn Java EE or Spring?

Java EE is nothing more than an extension of Java SE meaning that it's just a bunch of extra features and packages added onto Java SE. Features such as concurrency frameworks, serverlets, websockets and a whole lot more. So in other words, no you don't need to get into all of Java EE to know Spring.

Is Spring built on Java EE?

Spring is built on Java SE, but can run (and use some of the features of) Java EE. It can also be an alternative for when the full EE stack is not available, allowing non-EE platforms to integrate EE technologies like JPA or JMS.


1 Answers

Java EE is an standard, official, specification for a full featured Enterprise Application Framework stack. Includes stuff like Object-Relational Mapping, Security, Web Applications, database connectivity, transactions...

On top of Java EE specifications there are JavaEE implementations/application servers like: JBoss, Glassfish, WebSphere, Weblogic.

Spring on the other hand, is a framework doing lots of the stuff on the Java EE specifications, but in its own form. They don't follow Java EE specifications and APIs for that. But they do include a Web Framework, transaction management, security and several other solutions Java EE offers.

like image 156
Pablo Santa Cruz Avatar answered Sep 19 '22 06:09

Pablo Santa Cruz