Skip to content

Commit

Permalink
SQL Kamelets: Disable autowiring by default - SQLServer Sink
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
  • Loading branch information
oscerd committed Nov 25, 2024
1 parent 58df1de commit e438d89
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion kamelets/sqlserver-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ spec:
- "mvn:org.apache.commons:commons-dbcp2:2.12.0"
template:
beans:
- name: local-sqlserver-sink
type: "#class:org.apache.camel.component.sql.SqlComponent"
properties:
autowiredEnabled: "false"
- name: dsBean
type: "#class:org.apache.commons.dbcp2.BasicDataSource"
properties:
Expand All @@ -118,6 +122,6 @@ spec:
json:
library: Jackson
- to:
uri: "sql:{{query}}"
uri: "{{local-sqlserver-sink}}:{{query}}"
parameters:
dataSource: "#bean:{{dsBean}}"
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ spec:
- "mvn:org.apache.commons:commons-dbcp2:2.12.0"
template:
beans:
- name: local-sqlserver-sink
type: "#class:org.apache.camel.component.sql.SqlComponent"
properties:
autowiredEnabled: "false"
- name: dsBean
type: "#class:org.apache.commons.dbcp2.BasicDataSource"
properties:
Expand All @@ -118,6 +122,6 @@ spec:
json:
library: Jackson
- to:
uri: "sql:{{query}}"
uri: "{{local-sqlserver-sink}}:{{query}}"
parameters:
dataSource: "#bean:{{dsBean}}"

0 comments on commit e438d89

Please sign in to comment.