This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch 0.9.x
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 054f83b1f759dfaca7b397af0efcf615389f4d5d
Author: Andrea Cosentino <[email protected]>
AuthorDate: Wed Oct 26 12:07:49 2022 +0200

    SQL Server Sink: with 11.2.0.jre11 there are troubles connecting to SQL 
Server
    
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 kamelets/sqlserver-sink.kamelet.yaml | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/kamelets/sqlserver-sink.kamelet.yaml 
b/kamelets/sqlserver-sink.kamelet.yaml
index f7bb2201..eea18e9f 100644
--- a/kamelets/sqlserver-sink.kamelet.yaml
+++ b/kamelets/sqlserver-sink.kamelet.yaml
@@ -84,6 +84,20 @@ spec:
         title: Database Name
         description: The name of the SQL Server Database.
         type: string
+      encrypt:
+        title: Encrypt Connection
+        description: Encrypt the connection to SQL Server.
+        type: boolean
+        x-descriptors:
+          - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: false
+      trustServerCertificate:
+        title: Trust Server Certificate
+        description: Trust Server Ceritificate
+        type: boolean
+        x-descriptors:
+          - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: true
   types:
     in:
       mediaType: application/json
@@ -102,7 +116,7 @@ spec:
           - key: password
             value: '{{password}}'
           - key: url
-            value: 
'jdbc:sqlserver://{{serverName}}:{{serverPort}};databaseName={{databaseName}}'
+            value: 
'jdbc:sqlserver://{{serverName}}:{{serverPort}};databaseName={{databaseName}};encrypt={{encrypt}};trustServerCertificate={{trustServerCertificate}};'
           - key: driverClassName
             value: 'com.microsoft.sqlserver.jdbc.SQLServerDriver'
     from:

Reply via email to