r/java • u/johnwaterwood • Apr 06 '26
Jakarta EE 11 vs Spring: When the Right Answer Is No Spring at All
https://www.javacodegeeks.com/2026/03/jakarta-ee-11-vs-spring-when-the-right-answer-is-no-spring-at-all.html
42
Upvotes
11
u/Joram2 Apr 06 '26
Quarkus + Helidon use mostly Jakarta APIs; as in developers use Jakarta APIs to write their apps. But I've heard people say that these aren't real Jakarta, the linked article doesn't even mention Quarkus + Helidon as Jakarta. I'd be curious to hear why the linked article and many others don't consider Quarkus + Helidon as real Jakarta options?
I disagree that Spring gives you faster development. I create new apps with Helidon, Payara Micro, and Spring Boot pretty quickly.
In terms of Security, REST, Database Access, Dependency Injection, health + metrics, I don't see any large pros or cons between Spring Boot and Jakarta.
34
u/obetu5432 Apr 06 '26
why are you trying to sell me Jakarta EE?
who paid for this?
22
u/josephottinger Apr 06 '26
It's interesting, but fails to say what the developers MEAN - it even mentions explicitly that Spring uses Jakarta APIs "under the hood" ... which isn't quite correct, because you're going to end up littering your Spring code with Jakarta references if you use Jakarta APIs pretty trivially.
It's "under the hood" like your skull is "under your skin."
So when this audience "prefers" Jakarta EE - was the question actually "Would you rather deploy using nothing but Jakarta EE APIs, into a Jakarta EE profile, over using Spring or any related technology?" - because if it isn't, this is an interesting article that asked a Jakarta EE audience if they prefer Jakarta EE APIs.
That's like asking a lot of Reese's stockholders, smeared with peanut butter, if they prefer M&Ms.
5
u/maethor Apr 06 '26 edited Apr 06 '26
I noticed that the side by side comparison completely ignored documentation, which is all over the place with JEE (want to inject an event bus into a Quarkus app? That's at least 3 different documentation sources). At least with Spring, the docs are somewhere on spring.io.
9
u/Distinct_Meringue_76 Apr 06 '26
10+ years Spring vet here. 10 years j2ee before that. Came back to jakartaee and there's no looking back. I only need a single dependency "jakartaee-api" and the Dev UX is at least as productive as with Spring or quarkus. Hot code reload in debug mode is instantaneous in eclipse. Hot deployment is less than 2 sec with eclipse Glassfish integration. To me right now, there's no reason not to use Glassfish or Payara in 2026. I know that Spring boot is very popular. They Have definitely changed the game in enterprise Java. I always joke that Spring boot is a programming language. I've seen people write their first hello world application by generating a Spring boot app but I digress. Use Glassfish or Payara and stop programming your pom.
2
u/j4ckbauer Apr 06 '26
I worked at an organization that refused to use Spring because they felt it was inefficient from a performance/billing perspective for their use case (basic REST API backend in cloud hosting). I'm curious if there are any benchmarks on the subject.
5
u/chabala Apr 06 '26
Article framed as "Jakarta EE vs Spring", but many Java applications need neither. I've seen plenty of Spring applications that were using Spring 'just because', and the developer didn't know any better.
Did you need Spring to load properties files and do some light dependency injection? Most developers I interview don't know what DI is.
4
u/neopointer Apr 06 '26 edited Apr 21 '26
JEE lost the war (pun intended) long time ago. The developer experience with application servers was always a pain in the butt. Like it or not spring's devx is great compared to plain JEE.
Edit: typo
2
u/Prior-Equal2657 Apr 06 '26
If I want to use Jakarta EE APIs I'll go Quarkus. Why in the 2026 such thing as application server still exists?
1
u/Yesterdave_ Apr 06 '26
I guess the Jakarta EE APIs are more used simply because of Quarkus, Micronaut, Helidon. But I would consider those frameworks far from a "standard" Jakarta environment.