Croway opened a new pull request, #30226: URL: https://github.com/apache/camel/pull/30226
JIRA: [CAMEL-27056](https://issues.apache.org/jira/browse/CAMEL-27056) - An endpoint with `connectionUriString` but no `hosts` did not use the connection string: it used the `MongoClient` of the component (autowired when the registry holds exactly one) or looked up the path as a bean, and failed to start when there was none. - `MongoDbEndpoint` now creates its client from `connectionUriString` when it is set, as it already did for `hosts` since CAMEL-21735. The `mongoConnection` endpoint option still comes first. - The option descriptions of `connectionUriString`, `connectionBean` and the component `mongoConnection` say which client is used, and the component page lists the order in which the endpoint picks its client. Tests: `MongoDbEndpointConnectionUriStringTest` (2 tests fail before the fix and pass after it; 3 controls for the bean, component client and `mongoConnection` paths pass both ways). Upgrade guide: 4.24 entry `camel-mongodb - connectionUriString without hosts creates the client of the endpoint`. _Claude Code on behalf of Federico Mariani_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
