Skip to content

Commit

Permalink
SQL Kamelets: Disable autowiring by default - Oracle Source
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 55bfe42 commit 4efa89c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion kamelets/oracle-database-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ spec:
- "mvn:org.apache.commons:commons-dbcp2:2.12.0"
template:
beans:
- name: local-sql-oracle-source
type: "#class:org.apache.camel.component.sql.SqlComponent"
properties:
autowiredEnabled: "false"
- name: dsBean
type: "#class:org.apache.commons.dbcp2.BasicDataSource"
properties:
Expand All @@ -99,7 +103,7 @@ spec:
url: 'jdbc:oracle:thin:@{{serverName}}:{{serverPort}}/{{databaseName}}'
driverClassName: 'oracle.jdbc.driver.OracleDriver'
from:
uri: "sql:{{query}}"
uri: "{{local-sql-oracle-source}}:{{query}}"
parameters:
dataSource: "#bean:{{dsBean}}"
onConsume: "{{?consumedQuery}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ spec:
- "mvn:org.apache.commons:commons-dbcp2:2.12.0"
template:
beans:
- name: local-sql-oracle-source
type: "#class:org.apache.camel.component.sql.SqlComponent"
properties:
autowiredEnabled: "false"
- name: dsBean
type: "#class:org.apache.commons.dbcp2.BasicDataSource"
properties:
Expand All @@ -99,7 +103,7 @@ spec:
url: 'jdbc:oracle:thin:@{{serverName}}:{{serverPort}}/{{databaseName}}'
driverClassName: 'oracle.jdbc.driver.OracleDriver'
from:
uri: "sql:{{query}}"
uri: "{{local-sql-oracle-source}}:{{query}}"
parameters:
dataSource: "#bean:{{dsBean}}"
onConsume: "{{?consumedQuery}}"
Expand Down

0 comments on commit 4efa89c

Please sign in to comment.