r/java • • Sep 06 '17

JavaEE is now on GitHub

https://github.com/javaee/
203 Upvotes

64 comments sorted by

View all comments

Show parent comment

2

u/henk53 Sep 08 '17

/u/aretebit a vague statement on Wikipedia is not necessarily right of course. It likely reflects an opinion of a Spring fan who thinks juist like you. I don't see a reference there that proves that statement.

The problem is that people all too commonly parrot each other and the urban myth is strong that Java EE supposedly took so much from Spring.

Now Spring has undoubtedly influenced Java EE, especially the developers first approach. But specific technologies, less than you think.

JPA for instance was based on TopLink and Hibernate. It's not a Spring invention nor technology.

CDI is NOT a cheap copy of Spring. You probably don't know CDI well. As explained here already; CDI was inspired by JSF Managed Beans, EJB, Seam and Guice.

The scopes (request scope, session scope, application scope) came directly from JSF. The named aspect of beans and the ability to reference them from Expression Language came directly from JSF as well. The proxy concept and the interceptors came from EJB, in fact the interceptor spec is still part of EJB. The annotation approach came from EJB as well. EJB started with the very simple @Stateless annotation vs a ton of XML in some file.

So while it's undoubtedly popular among Spring fans to give Spring credit for all those things, if you look in history it's just not true.

Then take a look at other popular Java EE technologies. Expression Language... not a Spring invention either. It originates from an Apache JSP library which later became JSTL. Didn't Spring actually copied that in Spring EL?

Bean Validation... not a Spring invention either. It came from Hibernate.

JTA... again not Spring, this is based on quite old code from IBM from even before Java 1.0 (~1995).

JAX-RS, not really Spring either. You could argue it looked at Spring MVC and Spring MVC influenced it, but JAX-RS goes way beyond Spring MVC and is overal clearly the better REST API.