You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/08/13 14:19:00 UTC
[jira] [Comment Edited] (CAMEL-16862) Camel-Sql: Endpoint
DataSource option no longer overrides DataSource set by
ComponentCustomerizer
[ https://issues.apache.org/jira/browse/CAMEL-16862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17398691#comment-17398691 ]
Claus Ibsen edited comment on CAMEL-16862 at 8/13/21, 2:18 PM:
---------------------------------------------------------------
Okay you should use
dataSource("#secondDataSource")
To refer to a data source by its id, that would be the same for uri parameter - always use # as prefix as bean lookup
was (Author: davsclaus):
Okay you should use
dataSource("#secondDataSource")
To refer to a data source by its id
> Camel-Sql: Endpoint DataSource option no longer overrides DataSource set by ComponentCustomerizer
> -------------------------------------------------------------------------------------------------
>
> Key: CAMEL-16862
> URL: https://issues.apache.org/jira/browse/CAMEL-16862
> Project: Camel
> Issue Type: Bug
> Components: camel-sql
> Affects Versions: 3.11.1, 3.11.0
> Reporter: Pascal Schumacher
> Priority: Major
>
> After updating from Camel 3.10.0 to Camel 3.11.0 or Camel 3.11.1 the dataSource option of a SQL Endpoint no longer overrides the DataSource set by a Component ComponentCustomizer (at least when using Spring Boot, no idea if it works with just Camel).
> [https://github.com/PascalSchumacher/CamelSpringBootEndpointDataSource] contains a small example which demonstrates the issue. ExampleTest passes with Camel 3.10.0, but fails with Camel 3.11.0 and Camel 3.11.1.
> I believe this was caused by CAMEL-16732 probably by the changes to SqlComponent#createEndpoint in https://github.com/apache/camel/commit/8d4714d4b9cca87c947b8dd3813ab5c556583db5#diff-192e08c8d708cf496f905153f919bdfc444992b4fe424ae5f9841bfabd838bf7L65
--
This message was sent by Atlassian Jira
(v8.3.4#803005)