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 d68bcdae02e3f5c5f2d4108cd84a513c4ea5e7bc
Author: Andrea Cosentino <[email protected]>
AuthorDate: Mon Nov 25 15:27:05 2024 +0100

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

diff --git a/kamelets/mariadb-source.kamelet.yaml 
b/kamelets/mariadb-source.kamelet.yaml
index 23235f41..57021435 100644
--- a/kamelets/mariadb-source.kamelet.yaml
+++ b/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