Migrating Microservices to JDK 11

This section explains the build and runtime changes required in microservices related to JDK 11 artefacts compilation and execution.

Prerequisite

Ensure to perform the following actions before migrating the microservices to JDK 11.

  1. Download and install the latest openjdk-11 pack from Red Hat build of OpenJDK.
  2. After installation, configure the Java_Home and Java_Path environment variables.
    1. Click Windows Search button.
    2. Search the Advanced System Setting.
    3. Click Environment Variables which is available at the bottom right corner.

    The user variable and the system variable are available under Environment Variables.

    • To set the Java_Path and Java_Home for the particular user on a Window system, change the Java_Path and Java_Home in User variables.
    • To set the Java for all the users on the system, modify the Java_Path and Java_Home in the System variable.
    • Java on command prompt picks the JDK version from the Java_Path environment variable, whereas, Maven uses the JAVA_HOME environment variable to pick the JDK version to build the project and run it's plugin.

      The user can set the Java_Home environment variable in the System variables as shown in the screenshot below.

    • Graphical user interface, text, application

Description automatically generated

      The user can set the Java_Path environment variable in the System variables, as shown in the screenshot below.

      Graphical user interface, text, application

Description automatically generated

  1. Verify the Java Installation.

    1. Open the Command Prompt and give the command java –version. If it runs successfully, then Java is successfully installed.

    2. Check the Java version updated in the Maven.

Upgrading to JDK 11

You must perform the below changes in Infinity or Business microservices to build and run them successfully in JDK 11 runtime environment.

Test Evidences

The following are the test evidences for the migration of microservices to JDK 11.


Field Name
|
Application/Table name

Temenos Headquarters SA
2 Rue de l'Ecole-de-Chimie
CH - 1205 Geneva
Switzerland

Copyright © 2020- Temenos Headquarters SA

Published on :
Tuesday, August 29, 2023 1:49:02 PM IST

Last Updated R23 AMR