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 586c2bb6b8402e1270c91207e116810d5d76bec7
Author: Andrea Cosentino <[email protected]>
AuthorDate: Thu May 25 15:24:29 2023 +0200

    Bean: Use properties instead of property with key and value - PostgreSQL 
Source
    
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 kamelets/postgresql-source.kamelet.yaml | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/kamelets/postgresql-source.kamelet.yaml 
b/kamelets/postgresql-source.kamelet.yaml
index f4ebe6ef..eed54018 100644
--- a/kamelets/postgresql-source.kamelet.yaml
+++ b/kamelets/postgresql-source.kamelet.yaml
@@ -96,15 +96,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:postgresql://{{serverName}}:{{serverPort}}/{{databaseName}}'
-          - key: driverClassName
-            value: 'org.postgresql.Driver'
+        properties:
+          username: '{{username}}'
+          password: '{{password}}'
+          url: 
'jdbc:postgresql://{{serverName}}:{{serverPort}}/{{databaseName}}'
+          driverClassName: 'org.postgresql.Driver'
     from:
       uri: "sql:{{query}}"
       parameters:

Reply via email to