This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch 4.8.x
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 986830c45837064b3d0d04fa100488fe5159832a
Author: Andrea Cosentino <[email protected]>
AuthorDate: Mon Nov 25 15:33:14 2024 +0100

    SQL Kamelets: Disable autowiring by default - MariaDB Source
    
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 .../src/main/resources/kamelets/mariadb-source.kamelet.yaml         | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/mariadb-source.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/mariadb-source.kamelet.yaml
index 23235f41..57021435 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/mariadb-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/mariadb-source.kamelet.yaml
@@ -96,6 +96,10 @@ spec:
   - "mvn:org.apache.commons:commons-dbcp2:2.12.0"
   template:
     beans:
+      - name: local-sql-mariadb-source
+        type: "#class:org.apache.camel.component.sql.SqlComponent"
+        properties:
+          autowiredEnabled: "false"
       - name: dsBean
         type: "#class:org.apache.commons.dbcp2.BasicDataSource"
         properties:
@@ -104,7 +108,7 @@ spec:
           url: 'jdbc:mariadb://{{serverName}}:{{serverPort}}/{{databaseName}}'
           driverClassName: 'org.mariadb.jdbc.Driver'
     from:
-      uri: "sql:{{query}}"
+      uri: "{{local-sql-mariadb-source}}:{{query}}"
       parameters:
         dataSource: "#bean:{{dsBean}}"
         onConsume: "{{?consumedQuery}}"

Reply via email to