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

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

commit 13f3f773d37d07d4dd4b3daeeaa4c09b61b3702c
Author: Andrea Cosentino <[email protected]>
AuthorDate: Mon Nov 25 16:25:38 2024 +0100

    SQL Kamelets: Disable autowiring by default - AWS Redshift Sink
    
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 kamelets/aws-redshift-sink.kamelet.yaml                             | 6 +++++-
 .../src/main/resources/kamelets/aws-redshift-sink.kamelet.yaml      | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/kamelets/aws-redshift-sink.kamelet.yaml 
b/kamelets/aws-redshift-sink.kamelet.yaml
index e636d768..ba530b84 100644
--- a/kamelets/aws-redshift-sink.kamelet.yaml
+++ b/kamelets/aws-redshift-sink.kamelet.yaml
@@ -91,6 +91,10 @@ spec:
   - "mvn:org.apache.commons:commons-dbcp2:2.12.0"
   template:
     beans:
+      - name: local-sql-redshift-sink
+        type: "#class:org.apache.camel.component.sql.SqlComponent"
+        properties:
+          autowiredEnabled: "false"
       - name: dsBean
         type: "#class:org.apache.commons.dbcp2.BasicDataSource"
         properties:
@@ -105,6 +109,6 @@ spec:
           json: 
             library: Jackson
       - to: 
-          uri: "sql:{{query}}"
+          uri: "{{local-sql-redshift-sink}}:{{query}}"
           parameters:
             dataSource: "#bean:{{dsBean}}"
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/aws-redshift-sink.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/aws-redshift-sink.kamelet.yaml
index e636d768..ba530b84 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/aws-redshift-sink.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/aws-redshift-sink.kamelet.yaml
@@ -91,6 +91,10 @@ spec:
   - "mvn:org.apache.commons:commons-dbcp2:2.12.0"
   template:
     beans:
+      - name: local-sql-redshift-sink
+        type: "#class:org.apache.camel.component.sql.SqlComponent"
+        properties:
+          autowiredEnabled: "false"
       - name: dsBean
         type: "#class:org.apache.commons.dbcp2.BasicDataSource"
         properties:
@@ -105,6 +109,6 @@ spec:
           json: 
             library: Jackson
       - to: 
-          uri: "sql:{{query}}"
+          uri: "{{local-sql-redshift-sink}}:{{query}}"
           parameters:
             dataSource: "#bean:{{dsBean}}"

Reply via email to