Skip to content

CAMEL-26590: camel-spring-boot - Upgrade to Spring Boot 4.2.0 - #2116

Open
Croway wants to merge 1 commit into
apache:mainfrom
Croway:CAMEL-26590-sb-4.2.0
Open

Croway wants to merge 1 commit into
apache:mainfrom
Croway:CAMEL-26590-sb-4.2.0

Conversation

@Croway

@Croway Croway commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Description

CAMEL-26590: Spring Boot 4.2.0 support in the starters. The Spring Boot version and the Spring portfolio versions come from Camel through camel-dependencies, so this PR needs apache/camel#30447 merged and its SNAPSHOT published; CI fails until then.

camel-spring-rabbitmq-starter: the RabbitMQ connection factory comes from spring-boot-rabbitmq

In Spring Boot 4.2 the RabbitMQ (AMQP 0.9.1) auto-configuration moved from spring-boot-amqp to the new spring-boot-rabbitmq module, and spring-boot-starter-amqp now brings the generic AMQP 1.0 client instead. With only spring-boot-starter-amqp (as in the rabbitmq example) there is no ConnectionFactory bean on 4.2, so the spring-rabbitmq component has no connection factory.

The starter now depends on spring-boot-rabbitmq, so the ConnectionFactory and AmqpAdmin the component autowires are auto-configured from the spring.rabbitmq.* properties.

  • SpringRabbitMQConnectionFactoryAutowireTest: the component uses Boot's ConnectionFactory and AmqpAdmin
  • SpringRabbitMQBootConnectionFactoryIT: routes a message through RabbitMQ (test-infra container) configured only with spring.rabbitmq.*

json-path: the Spring Boot 4.1 workaround is removed

Spring Boot 4.2 manages json-path 3.0.0, so the temporary json-path entry of camel-spring-boot-dependencies (CAMEL-22857, #2088) and the "JSONPath and Spring Boot 4.1" section of the Jackson page are removed.

Regenerated

  • camel-spring-boot-dependencies: micrometer 1.18.0, micrometer-tracing 1.8.0; json-path no longer listed
  • spring-boot.json of camel-spring-boot: the configuration processor of Boot 4.2 keeps the endpoint group of management.endpoint.camelroutes (type CamelRoutesEndpoint); the properties are unchanged

Not in this PR

  • springdoc: no release built on Spring Boot 4.2 yet, stays on 3.0.2
  • the rabbitmq example moves to spring-boot-starter-rabbitmq in apache/camel-spring-boot-examples (after this PR)

Testing

Against the apache/camel#30447 branch, on JDK 25 with Spring Boot 4.2.0:

  • mvn install -Dfastinstall: all modules build
  • mvn verify of core/camel-spring-boot, core/camel-spring-boot-xml and 27 Spring related starters (spring-rabbitmq, observability-services, platform-http, micrometer, micrometer-observability, observation, spring-cloud-config, undertow, undertow-spring-security, sql, kafka, mcp-server, ai-observability, jsonpath, hashicorp-vault, spring-ws, spring-redis, spring-batch, spring-security, spring-ldap, spring-jdbc, reactor, jms, springdoc, spring-ai-chat, spring, opentelemetry2): 650 tests (incl. 15 ITs), 0 failures
  • camel-spring-cloud-config-starter, camel-hashicorp-vault-starter, camel-pqc-starter with Spring Cloud 2026.0.0, and camel-mcp-server-starter (55 tests) with Spring AI 2.1.0: pass
  • archetypes/camel-archetype-spring-boot ITs: the generated project builds and starts on Spring Boot 4.2.0

Claude Code (Opus 5.5) on behalf of Federico Mariani

Spring Boot 4.2 moved the RabbitMQ auto-configuration from spring-boot-amqp
to spring-boot-rabbitmq; spring-boot-starter-amqp now brings the AMQP 1.0
client and no RabbitMQ ConnectionFactory. camel-spring-rabbitmq-starter
depends on spring-boot-rabbitmq so the component gets the auto-configured
ConnectionFactory and AmqpAdmin.

Tests: SpringRabbitMQConnectionFactoryAutowireTest checks the component uses
Boot's beans; SpringRabbitMQBootConnectionFactoryIT routes a message through
RabbitMQ configured only with spring.rabbitmq.* properties.

json-path: Spring Boot 4.2 manages json-path 3.0.0, so the temporary pin in
camel-spring-boot-dependencies (CAMEL-22857) and the "JSONPath and Spring
Boot 4.1" section of the Jackson page are removed.

Regenerated:
- camel-spring-boot-dependencies: micrometer 1.18.0, micrometer-tracing
  1.8.0; json-path no longer listed
- spring-boot.json: the configuration processor now keeps the endpoint group
  for management.endpoint.camelroutes; properties are unchanged

Requires the Camel change of CAMEL-26590 (camel-dependencies with
spring-boot-version 4.2.0).
@Croway
Croway force-pushed the CAMEL-26590-sb-4.2.0 branch from 47f0abb to 8677501 Compare November 19, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant