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 2022/10/26 10:36:13 UTC
[camel-kamelets] 04/04: SQL Server Sink: with 11.2.0.jre11 there are troubles connecting to SQL Server
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch sqlserver-sink-source-fix
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit edb6c3b39ec636d4769950dd5dde5a1d9490e035
Author: Andrea Cosentino <an...@gmail.com>
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 <an...@gmail.com>
---
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: