Update Custom Plugins for JDK 17 Upgrade
The upcoming version of Digital.ai Release 24.1 or later requires upgrading to Java 17 as it is the next Long Term Support (LTS) version of the JDK. This ensures that Release has access to the latest Java functionalities and as well as up to date security fixes.
Note: The official Release plugins are already updated to operate with Java 17. However, all the locally developed (custom) plugins should be validated for full Java 17 compatibility before deploying it on a 24.1 or later Release instance.
What is Changed
With the rebranding of Java EE to Jakarta EE, many libraries have undergone changes in package names and are no longer compatible with the previous versions. For more information, see Transition from Java EE to Jakarta EE.
The following packages have been removed from JDK 17 and reintroduced in a jakarta
namespace.
Pre-jakarta | Post-jakarta |
---|---|
javax.activation | jakarta.activation |
javax.annotation | jakarta.annotation |
javax.batch | jakarta.batch |
javax.ejb | jakarta.ejb |
javax.el | jakarta.el |
javax.enterprise | jakarta.enterprise |
javax.faces | jakarta.faces |
javax.jms | jakarta.jms |
javax.json | jakarta.json |
javax.jws | jakarta.jws |
javax.mail | jakarta.mail |
javax.persistence | jakarta.persistence |
javax.resource | jakarta.resource |
javax.servlet | jakarta.servlet |
javax.validation | jakarta.validation |
javax.websocket | jakarta.websocket |
javax.ws.rs | jakarta.ws.rs |
javax.xml.bind | jakarta.xml.bind |
Why Upgrade is Needed
If you're using one or more of the above mentioned Pre-JDK 17 packages in your custom plugin code, you must update your plugin with JDK 17 packages, in order to run it with Release 24.1 or later.
Follow the instructions below to understand how to verify the local plugins for compatibility and upgrade them.
Verify using Plugin Manager CLI
The Plugin Manager CLI is enhanced to scan plugins for Java 17 compatibility. For more information, see Plugin Manager CLI.
The following commands are added to the Plugin Manager CLI:
-verifyLocalPlugins "directory path"
- All the Java and Python plugin files available in the specified directory are scanned for Java 17 compatibility-verifyLocalPlugins "file path"
- The specified plugin file is scanned for Java 17 compatibility-verifyPlugins database
- The plugins in the Release database are scanned for Java 17 compatibility-verifyPlugins filesystem
- The plugins stored in the local filesystem for the Release instance are scanned for Java 17 compatibility
Verify using Plugin Manager UI
- The Plugin Manager UI is updated to ensure that plugins installed or updated using the Upload button are scanned for Java 17 compatibility. For more information, see Plugin Manager.
- If a plugin is found to be incompatible with Java 17, it will not be installed or updated. As a result, an error message is displayed on the upper-right corner of the screen.