Skip to content

Commit

Permalink
SQL Kamelets: Disable autowiring by default - MariaDB Sink
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 708b49d commit 0d6e300
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion kamelets/mariadb-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ spec:
- "mvn:org.apache.commons:commons-dbcp2:2.12.0"
template:
beans:
- name: local-sql-mariadb-sink
type: "#class:org.apache.camel.component.sql.SqlComponent"
properties:
autowiredEnabled: "false"
- name: dsBean
type: "#class:org.apache.commons.dbcp2.BasicDataSource"
properties:
Expand All @@ -108,6 +112,6 @@ spec:
json:
library: Jackson
- to:
uri: "sql:{{query}}"
uri: "{{local-sql-mariadb-sink}}:{{query}}"
parameters:
dataSource: "#bean:{{dsBean}}"
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ spec:
- "mvn:org.apache.commons:commons-dbcp2:2.12.0"
template:
beans:
- name: local-sql-mariadb-sink
type: "#class:org.apache.camel.component.sql.SqlComponent"
properties:
autowiredEnabled: "false"
- name: dsBean
type: "#class:org.apache.commons.dbcp2.BasicDataSource"
properties:
Expand All @@ -108,6 +112,6 @@ spec:
json:
library: Jackson
- to:
uri: "sql:{{query}}"
uri: "{{local-sql-mariadb-sink}}:{{query}}"
parameters:
dataSource: "#bean:{{dsBean}}"

0 comments on commit 0d6e300

Please sign in to comment.