Skip to content

Commit

Permalink
SQL Kamelets: Disable autowiring by default - AWS Redshift Source
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Cosentino <[email protected]>
  • Loading branch information
oscerd committed Nov 25, 2024
1 parent 03aa2d8 commit aec86ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion kamelets/aws-redshift-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ spec:
- "mvn:org.apache.commons:commons-dbcp2:2.12.0"
template:
beans:
- name: local-sql-redshift-source
type: "#class:org.apache.camel.component.sql.SqlComponent"
properties:
autowiredEnabled: "false"
- name: dsBean
type: "#class:org.apache.commons.dbcp2.BasicDataSource"
properties:
Expand All @@ -101,7 +105,7 @@ spec:
url: 'jdbc:redshift://{{serverName}}:{{serverPort}}/{{databaseName}}'
driverClassName: 'com.amazon.redshift.jdbc.Driver'
from:
uri: "sql:{{query}}"
uri: "{{local-sql-redshift-source}}:{{query}}"
parameters:
dataSource: "#bean:{{dsBean}}"
onConsume: "{{?consumedQuery}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ spec:
- "mvn:org.apache.commons:commons-dbcp2:2.12.0"
template:
beans:
- name: local-sql-redshift-source
type: "#class:org.apache.camel.component.sql.SqlComponent"
properties:
autowiredEnabled: "false"
- name: dsBean
type: "#class:org.apache.commons.dbcp2.BasicDataSource"
properties:
Expand All @@ -101,7 +105,7 @@ spec:
url: 'jdbc:redshift://{{serverName}}:{{serverPort}}/{{databaseName}}'
driverClassName: 'com.amazon.redshift.jdbc.Driver'
from:
uri: "sql:{{query}}"
uri: "{{local-sql-redshift-source}}:{{query}}"
parameters:
dataSource: "#bean:{{dsBean}}"
onConsume: "{{?consumedQuery}}"
Expand Down

0 comments on commit aec86ec

Please sign in to comment.