[
https://issues.apache.org/jira/browse/CAMEL-26763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-26763.
---------------------------------
Resolution: Fixed
Merged to main with https://github.com/apache/camel/pull/31117 (commit
58b63c016d6c).
> camel-azure-cosmosdb - an option for the connection mode (gateway or direct)
> of the client
> ------------------------------------------------------------------------------------------
>
> Key: CAMEL-26763
> URL: https://issues.apache.org/jira/browse/CAMEL-26763
> Project: Camel
> Issue Type: Improvement
> Components: camel-azure
> Reporter: Andrea Cosentino
> Assignee: Andrea Cosentino
> Priority: Minor
> Fix For: 4.25.0
>
>
> {{CosmosDbClientFactory}} always builds a direct-mode client, and
> {{CosmosDbConfiguration}} has no option for the connection mode. A route can
> therefore not use the component's own client against a Cosmos DB endpoint
> that serves the gateway mode only, such as the Floci AZ emulator of the
> integration tests (CAMEL-26616): {{createDatabase}} fails with 501 on {{GET
> /addresses/?$resolveFor=dbs&$filter=protocol eq rntbd}}, while the same
> client in gateway mode creates databases and containers and writes and reads
> items. Today such a route has to bind a {{cosmosAsyncClient}} of its own.
> Found by Croway in the review of
> [#29249|https://github.com/apache/camel/pull/29249].
> *Change:* an option for the connection mode (direct by default, as today, or
> gateway), used by {{CosmosDbClientFactory}}, with its documentation.
> _Claude Code on behalf of Andrea Cosentino_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)