You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/05/25 13:36:12 UTC
[camel-kamelets] 02/20: Bean: Use properties instead of property with key and value - MariaDB Source
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch 1475-5
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit dab7449454f02b90e77469c086f8db7cbbc39631
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 25 15:13:13 2023 +0200
Bean: Use properties instead of property with key and value - MariaDB Source
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../main/resources/kamelets/mariadb-source.kamelet.yaml | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/mariadb-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/mariadb-source.kamelet.yaml
index 0516d4c8..18332582 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/mariadb-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/mariadb-source.kamelet.yaml
@@ -99,15 +99,11 @@ spec:
beans:
- name: dsBean
type: "#class:org.apache.commons.dbcp2.BasicDataSource"
- property:
- - key: username
- value: '{{username}}'
- - key: password
- value: '{{password}}'
- - key: url
- value: 'jdbc:mariadb://{{serverName}}:{{serverPort}}/{{databaseName}}'
- - key: driverClassName
- value: 'org.mariadb.jdbc.Driver'
+ properties:
+ username: '{{username}}'
+ password: '{{password}}'
+ url: 'jdbc:mariadb://{{serverName}}:{{serverPort}}/{{databaseName}}'
+ driverClassName: 'org.mariadb.jdbc.Driver'
from:
uri: "sql:{{query}}"
parameters: