Apache Camel 4.x Upgrade Guide

This document is for helping you upgrade your Apache Camel application from Camel 4.x to 4.y. For example, if you are upgrading Camel 4.0 to 4.2, then you should follow the guides from both 4.0 to 4.1 and 4.1 to 4.2.

The Camel Upgrade Recipes project provides automated assistance for some common migration tasks. Note that manual migration is still required. See the documentation page for details.

Upgrading Camel 4.21 to 4.22

camel-fory with JDK 25+ - Breaking change

Due to new requirements from Apache Fory, when using Apache Fory Dataformat, the JVM parameter --add-opens java.base/java.lang.invoke=ALL-UNNAMED must be provided.