Skip to content

Commit

Permalink
SQL Kamelets: Disable autowiring by default - MariaDB 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 d68bcda commit 986830c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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}}"
Expand Down

0 comments on commit 986830c

Please sign in to comment.