Repository navigation
Conversation
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
force-pushed
the
CAMEL-26590-sb-4.2.0
branch
from
November 19, 2026 20:08
47f0abb to
8677501
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-rabbitmqIn Spring Boot 4.2 the RabbitMQ (AMQP 0.9.1) auto-configuration moved from
spring-boot-amqpto the newspring-boot-rabbitmqmodule, andspring-boot-starter-amqpnow brings the generic AMQP 1.0 client instead. With onlyspring-boot-starter-amqp(as in the rabbitmq example) there is noConnectionFactorybean on 4.2, so thespring-rabbitmqcomponent has no connection factory.The starter now depends on
spring-boot-rabbitmq, so theConnectionFactoryandAmqpAdminthe component autowires are auto-configured from thespring.rabbitmq.*properties.SpringRabbitMQConnectionFactoryAutowireTest: the component uses Boot'sConnectionFactoryandAmqpAdminSpringRabbitMQBootConnectionFactoryIT: routes a message through RabbitMQ (test-infra container) configured only withspring.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 listedspring-boot.jsonof camel-spring-boot: the configuration processor of Boot 4.2 keeps the endpoint group ofmanagement.endpoint.camelroutes(typeCamelRoutesEndpoint); the properties are unchangedNot in this PR
spring-boot-starter-rabbitmqin 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 buildmvn verifyofcore/camel-spring-boot,core/camel-spring-boot-xmland 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 failurescamel-spring-cloud-config-starter,camel-hashicorp-vault-starter,camel-pqc-starterwith Spring Cloud 2026.0.0, andcamel-mcp-server-starter(55 tests) with Spring AI 2.1.0: passarchetypes/camel-archetype-spring-bootITs: the generated project builds and starts on Spring Boot 4.2.0Claude Code (Opus 5.5) on behalf of Federico Mariani