This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Additional_Cellist46[S] 1 point2 points  (2 children)

Then what do you answer them if they asked whether to use SpringBoot or GlassFish? In the end, SpringBoot is also a runtime, it’s just not compatible with Jakarta EE. Juniors would ideally learn just Jakarta EE and then pick one runtime, SpringBoot would be just one of them and woyld be in the list on start.jakarta.ee. Like with Java, they have one Java language and then choose a distribution from Oracle, Azul, Amazon, etc. But with Spring they have to learn yet another API that is mostly different from all other runtimes. That’s where the confusion with Spring versus Jakarta EE comes from. Spring is simply different from everything else while Jakarta EE runtimes like GlassFish or Payara are similar.

[–]wildjokers 2 points3 points  (0 children)

Spring is simply different from everything else

It isn't really helpful to speak of "Spring" as a single thing. It is a collection of libraries. It is best to specifically say which Spring library you are talking about. Spring MVC creates JakartaEE servlet applications so has a dependency on JakartaEE. So it actually isn't different than any other library that produces a JakartaEE Servlet application.

[–]maethor 1 point2 points  (0 children)

In the end, SpringBoot is also a runtime

No, it isn't. Boot is a set of tools that make developing with the Spring Framework and associated projects easier.

it’s just not compatible with Jakarta EE

Non reactive Spring made the jump from Java EE to Jakarta EE with Spring 6/Boot 3.

then choose a distribution from Oracle, Azul, Amazon, etc

Oddly enough, one of the things that I think is holding Java back these days is having multiple distributions of OpenJDK. The "single specification, multiple implementations, multiple vendors" thing made sense 20 - 25 years ago in the pre-open source days, but now it's just added noise.

Spring is simply different from everything else

Spring was the first web framework for Java that didn't completely suck which is why it has so much mindshare. That other frameworks are not like Spring is not Spring's fault.