Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

Why you should migrate your Java workloads to OpenShift

January 7, 2022
Philip Hayes
Related topics:
ContainersJavaKubernetesOperators
Related products:
Red Hat JBoss Enterprise Application PlatformMigration Toolkit for ApplicationsRed Hat OpenShift

    Despite the incredible pace of adoption of container orchestration platforms such as Kubernetes and Red Hat OpenShift, the vast majority of Java workloads are still running on virtual machines or bare metal. In many cases, enterprise operation teams are mandated to modernize and move these workloads to the cloud, and OpenShift is the natural destination.

    When we talk about Red Hat JBoss Enterprise Application Platform (EAP) migration, developers ask questions such as:

    • What does the process involve?
    • What are the benefits of moving workloads to OpenShift?
    • How easy is it to move these workloads?
    • How can you be sure you won't require code changes?
    • What tools are there to assist with this effort?

    This article, the first in a two-part series, provides answers to these questions. The second part of the series is a tutorial that walks through the steps to actually migrate a JBoss EAP application to OpenShift.

    Migrating Java applications to OpenShift: What's involved?

    OpenShift is an enterprise Kubernetes platform. Kubernetes is a container orchestration system for automating computer application deployment, scaling, and management. All applications deployed on Kubernetes must be containerized. To containerize an application, an image in compliance with the Open Container Initiative (OCI) needs to be built containing the required runtime, any additional libraries, and the application code. Red Hat provides a tool to create these images from JBoss EAP applications: The JBoss EAP Source-to-Image (S2I) builder.

    Once the image is built, there are a number of ways (e.g., template, Helm chart, Kubernetes Operator) to deploy the application image to OpenShift. My recommendation is to use the JBoss EAP Operator. This Operator has been designed to simplify some of the operations team's tasks when deploying EAP applications. The Operator supports functionality critical to enterprise-scale applications such as transaction recovery and Enterprise Java Bean (EJB) remote calls. Using the Operator, deployment can be as simple as identifying the image and specifying the number of instances to deploy.

    What are the benefits of moving JBoss EAP workloads to OpenShift?

    There are quite a few benefits. Here are some of the main ones:

    • Reduced operational costs: Taking advantage of OpenShift tools—such as the JBoss EAP Operator, OpenShift Service Mesh, Tekton, and Argo CD—reduces the load on the operations team.
    • Improved resource usage: The OpenShift JBoss EAP S2I builder tools, since version 7.3 of JBoss EAP, deliver greatly reduced image size and memory footprint through a combination of Galleon layer provisioning and use of a JBoss EAP runtime image.
    • Integrated monitoring and metrics: OpenShift integrates application monitoring and metrics through the use of Prometheus. These tools collect metrics from JBoss EAP applications running on OpenShift. In addition, with the JBoss EAP Expansion Pack (XP) MicroProfile tools, JBoss EAP applications can report their health status to OpenShift with minimal code.
    • Improved developer experience: OpenShift provides a lot of tools to improve the developer experience, such as the Developer UI (a developer-focused view of the running cluster), continuous integration tools (Tekton), and all the microservices patterns provided out of the box by OpenShift Service Mesh.
    • Kubernetes functionality: Kubernetes provides a number of services to manage the maintenance and running of application workloads: For example, resource management, application health monitoring, workload scheduling, and horizontal scaling. All combine to make better use of resources and save costs.
    • Additional benefits from the Red Hat Runtimes bundle: JBoss EAP subscriptions can be converted to Red Hat Runtimes subscriptions at no additional cost. With Red Hat Runtimes, customers get the same level of support for JBoss EAP along with tools essential to developing cloud applications, such as Red Hat's single sign-on technology, Red Hat Data Grid, and Red Hat AMQ Broker.

    How easy is it to move workloads?

    The enterprise world is all about automation. Migrating a single workload to OpenShift is very straightforward: We'll go through how to do it in the second part of this series. But for large amounts of applications, you'll need to automate this process. Everything we're going to go through in this article can be incorporated into pipelines and automation tools.

    How can you be sure of no code changes?

    At Red Hat, we know JBoss EAP and legacy Java applications well. We also know Kubernetes and what works well in containers. In our experience, JBoss EAP 7 applications rarely require code changes during containerization. A few exceptions exist, such as applications issuing remote method invocations, but these are rare. EJB remoting is more common.

    To help you determine whether any code changes are required, Red Hat supplies the migration toolkit for applications. This tool analyzes Java applications to determine their suitability for migration to a range of target destinations, including containerization. You can run the migration toolkit using the web user interface shown in Figure 1, a command-line interface, a Maven plugin, or an IDE extension. This tool can be used to analyze applications you want to containerize and presents any mandatory or recommended changes in a report.

    The graphical interface of Red Hat's migration toolkit for applications offers several options, including Containerization.
    Figure 1. The graphical interface of the migration toolkit for applications offers several options, including containerization.

    What tools are there to assist with this effort?

    We've already touched on two tools: the JBoss EAP S2I image builder and the migration toolkit for applications.

    There is also a range of tools under the Konveyor community project. These tools assist with the migration of workloads to Kubernetes. In addition to tools for rehosting an existing container-based application, rehosting a virtual machine, and migrating an application onto Kubernetes, the Konveyor project also provides tools to manage an enterprise's application portfolio and measure the performance of software delivery by gathering metrics about team and organizational behaviors over time.

    Note: The Konveyor project is an upstream project maintained by an open source community, and is not covered by Red Hat support.

    Conclusion

    OpenShift makes application development and deployment easier on many levels. A number of tools, both from the Konveyor project and from Red Hat itself, make it relatively easy to migrate your Java application. Stay tuned for the next article in this series, which will dive into the process step-by-step.

    Last updated: August 26, 2022

    Related Posts

    • Migrate your Java apps to containers with Migration Toolkit for Applications 5.0

    • Migrating applications to OpenShift, Part 1: Overview

    • Spring Boot to Quarkus migrations and more in Red Hat's migration toolkit for applications 5.1.0

    • Installing Red Hat's migration toolkit for applications on your laptop

    • Streamline your JBoss EAP dev environment with Red Hat CodeReady Workspaces: Part 1

    Recent Posts

    • Federated identity across the hybrid cloud using zero trust workload identity manager

    • Confidential virtual machine storage attack scenarios

    • Introducing virtualization platform autopilot

    • Integrate zero trust workload identity manager with Red Hat OpenShift GitOps

    • Best Practice Configuration and Tuning for Linux and Windows VMs

    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Chat Support

    Please log in with your Red Hat account to access chat support.