Friends of OpenJDK Today

How to Upgrade to Jakarta EE 10 and GlassFish 7: It’s Much Easier Than You Think!

June 27, 2023

Author(s)

  • Ondro Mihalyi

    Ondro is a software developer and consultant. He’s passionate about helping his clients and the wider Java community with their projects based on Jakarta EE and similar technologies. He's a ... Learn more

Upgrading to Jakarta EE 10 from an older version of Jakarta EE or Java EE can be a bit tricky and may require some extra attention to detail. But don’t worry, we’ve got you covered!

In this series of articles, we’ll explain everything you need to know before upgrading to Jakarta EE 10 and guide you to complete the upgrade successfully and in almost no time.

Types of challenges

The challenges with upgrading to Jakarta EE 10 or to Eclipse GlassFish 7 fall into these 3 main categories:

  • Changing the javax package prefix to jakarta requires updating all references to the old packages
  • Obsolete annotations may need to be replaced with alternative annotations
  • Rewriting code that uses removed APIs, which don’t have straightforward alternatives

All of the above applies not only to your codebase but also to all dependencies used by your application.

Existing tools to automate upgrade steps

Fortunately, many of the challenges can be automated using free and opensource tools like Openrewrite, and Eclipse Transformer. These tools can save you time and effort when upgrading to Jakarta EE 10, allowing you to focus on other important aspects of your application’s development.

So, what to do to successfully upgrade to Jakarta EE 10?

All that you need to know is covered or will be covered soon by this series of articles about upgrading to Jakarta EE 10 at the OmniFish blog:

So far, the series contains the following posts:

We've prepared detailed instructions that explain how to use available automating tools and example projects that show how to use them. In near future, we'll be adding more articles to cover more details, like how to upgrade dependencies to Jakarta EE 10, how to transform them if needed, and how to refactor your code to remove usage of APIs removed in Jakarta EE 10. We hope that this series of articles will help you upgrade to Jakarta EE 10 easily and in a very short time.

OmniFish - Jakarta EE experts

  • Eclipse GlassFish Production Support
  • Jakarta EE Consulting
  • Custom Development with Jakarta EE

For more information, contact OmniFish at their contact page, or Twitter at @OmniFishEE.

Topics:

Related Articles

View All

Author(s)

  • Ondro Mihalyi

    Ondro is a software developer and consultant. He’s passionate about helping his clients and the wider Java community with their projects based on Jakarta EE and similar technologies. He's a ... Learn more

Comments (1)

Your email address will not be published. Required fields are marked *

Highlight your code snippets using [code lang="language name"] shortcode. Just insert your code between opening and closing tag: [code lang="java"] code [/code]. Or specify another language.

Save my name, email, and website in this browser for the next time I comment.

Java Weekly, Issue 496 | Baeldung

[…] >> How to Upgrade to Jakarta EE 10 and GlassFish 7: It’s Much Easier Than You Think! [foojay.io] […]

Subscribe to foojay updates:

https://foojay.io/feed/
Copied to the clipboard