What You Need to Know About Jakarta EE vs Spring

April 29, 2025 5 answers
Asked by brine.3pct
I'm trying to wrap my head around what Jakarta EE really is. At first glance, it seems like a framework similar to Spring or Quarkus. But then I see it offers APIs like JPA, Servlets, and CDI, which are things frameworks like Spring also make use of. So, is Jakarta EE more of a specification rather than just another framework? And do I need to dive into Jakarta EE concepts to truly understand Spring's inner workings, or can I just jump into using Spring directly? Would love to hear how others got their heads around this!

Answers

daily crossword habit
To clarify, Jakarta EE is indeed a specification, and while it informs framework design, it isn't a framework itself. You can absolutely learn Spring without a thorough grounding in Jakarta EE. Just be aware that Spring integrates a few Jakarta APIs, like JPA for persistence and Servlets for web applications, but it abstracts away much of the underlying complexity. Itโ€™s common for people new to Java to choose to learn Spring right away without delving into Jakarta EE first.
Reply to this answer
2vote-threshold
You're right that Jakarta EE provides a bunch of APIs, but it's not a framework in the same way Spring is. Spring was designed to be lightweight and offer flexibility, often standing in contrast to the heavier Java EE (now Jakarta EE) model. You can dive straight into Spring without needing exhaustive knowledge of Jakarta EE; just focus on the parts of Jakarta that Spring uses when you're learningโ€”it will make things easier. When you get deeper into Spring, you'll start seeing how it connects with those Jakarta EE concepts.
Reply to this answer
mortar__joint
Jakarta EE is more about the specifications; it initially comes from the days of Java EE that Oracle rebranded. While some companies might still rely on Jakarta EE for stability, most modern Java applications, especially in dynamic environments, tend to gravitate towards Spring due to its flexibility and rich ecosystem. If a job listing requires extensive knowledge of JEE stack, it's usually a red flagโ€”indicating it might be using outdated tech.
Reply to this answer
rune scholar
I think of Jakarta EE as that 'classic' set of rules and tech that big businesses might need, like stability and support for legacy systems. It was a time when everything big Java was all about enterprise-grade solutions. On the other hand, Spring started as an alternative that broke away from that rigid structure. You don't need to master Jakarta EE to get by with Spring, as Spring often simplifies the process by telling you what you need without making you dive too deep.
Reply to this answer
CHICKEN STOCK
Yes, Jakarta EE is primarily a specification. It lays out various high-level APIs that frameworks like Spring can implement. Think of Jakarta EE as a set of standards that define how things should work, while Spring is more of an actual tool for building applications that may use some of those standards under the hood. If you're learning Spring, you can absolutely start without a deep understanding of Jakarta EE right awayโ€”Spring encapsulates a lot of that complexity for you.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions