3 ms·
Java EE is no less or more pure than Spring. It's just an alternative set of libraries and frameworks for roughly the same purposes. Everything else is just mar
by BjoernKW 9y ago
Java EE is no less or more pure than Spring. It's just an alternative set of libraries and frameworks for roughly the same purposes. Everything else is just marketing by Oracle. The statement that Spring is obsolete is plainly wrong. Java EE neither provides the exact same feature set nor is it included in default Java environments.
Spring runs in any servlet container and on every cloud platform that supports Java. Spring Boot applications can even run as a stand-alone JAR. Java EE requires an application server such as Glassfish or JBoss to run. This incurs additional cost and complexity.
The Spring ecosystem is somewhat larger, too. You'll find a wide range of additional libraries by both Pivotal and third parties that draw upon Spring features like annotations and the Spring way of doing dependency injection.
If I were to decide whether to use Spring or Java EE for a new application regardless of the environment I'd clearly opt for Spring. If on the other hand for one reason or another you're running a Java EE environment anyway you might just as well use those capabilities. Depending on your scalability requirements and the number of applications a Java EE application can perform better than a Spring one in terms of memory usage because Java EE libraries typically are provided by the server whereas Spring libraries often come with each application individually.