User manual

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.24 to 4.25

camel-openai - oauthProfile takes precedence over apiKey

When both oauthProfile and apiKey are set on a camel-openai endpoint, oauthProfile now takes precedence and the apiKey is ignored. Before, apiKey took precedence over oauthProfile. This reversal matches the option descriptions and the behaviour of the other AI components. Applications that intentionally configured both options relying on apiKey taking precedence must remove the oauthProfile option or set it to empty to restore the previous resolution order.

Additionally, a misconfigured oauthProfile on the OpenAI API client (the oauthProfile option on the endpoint itself, not on a nested mcpServer.*) will only be reported on the first exchange rather than at route startup. This is an intentional trade-off that enables short-lived token refresh.

camel-alibaba-eventbridge - the client that the endpoint creates sends its requests over HTTPS

The client that the alibaba-eventbridge endpoint creates now sends its requests to EventBridge over HTTPS. Before, it sent them over HTTP, the protocol that EventBridgeClient of the SDK uses when its Config sets none. The new tls option, true by default, sets the protocol.

A route whose endpoint option names a host that accepts only HTTP needs tls=false now. A client that is set or autowired in the eventBridgeClient option keeps its own protocol.