From 99384f3620f103ea9407dab044e9f67291ac8cf5 Mon Sep 17 00:00:00 2001 From: "Determe, Sebastien (sd378r)" Date: Mon, 11 Sep 2017 15:30:54 +0200 Subject: Change mysql to mariadb connector Replace the mysql connector used by Spring to mariadb + remove the Mysql connector from the clamp.jar Change-Id: If7241e111d07ad98eba3b0fcb612b0f4711d683d Issue-Id: CLAMP-52 Signed-off-by: Determe, Sebastien (sd378r) --- extra/docker/clamp/clamp.env | 2 +- pom.xml | 16 ++++++++++++++++ src/main/resources/application.properties | 9 ++++----- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/extra/docker/clamp/clamp.env b/extra/docker/clamp/clamp.env index bac8fd313..d9ced6f35 100644 --- a/extra/docker/clamp/clamp.env +++ b/extra/docker/clamp/clamp.env @@ -1 +1 @@ -SPRING_APPLICATION_JSON={"spring.datasource.camunda.url":"jdbc:mysql://db:3306/camundabpm?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&maxReconnects=100","spring.datasource.cldsdb.url":"jdbc:mysql://db:3306/cldsdb4?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&maxReconnects=100"} \ No newline at end of file +SPRING_APPLICATION_JSON={"spring.datasource.camunda.url":"jdbc:mariadb://db:3306/camundabpm?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&maxReconnects=100","spring.datasource.cldsdb.url":"jdbc:mariadb://db:3306/cldsdb4?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&maxReconnects=100"} \ No newline at end of file diff --git a/pom.xml b/pom.xml index 23a261406..2c5290cf2 100644 --- a/pom.xml +++ b/pom.xml @@ -316,6 +316,12 @@ com.att.ajsc sdk-java-camunda-core ${sdk.camunda.core} + + + mysql + mysql-connector-java + + @@ -360,6 +366,10 @@ jackson-databind com.fasterxml.jackson.core + + mysql + mysql-connector-java + @@ -431,6 +441,12 @@ 2.1.7 + + + org.mariadb.jdbc + mariadb-java-client + 2.1.1 + diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index d10b4f422..a66557835 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -95,10 +95,10 @@ kubernetes.namespace=com-att-ajsc #server.port=0 #Camunda Process Engine DataSource connection Details -spring.datasource.camunda.url=jdbc:mysql://localhost:${docker.mariadb.port.host}/camundabpm?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&maxReconnects=100 +spring.datasource.camunda.driverClassName=org.mariadb.jdbc.Driver +spring.datasource.camunda.url=jdbc:mariadb://localhost:${docker.mariadb.port.host}/camundabpm?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&maxReconnects=100 spring.datasource.camunda.username=camunda spring.datasource.camunda.password=ndMSpw4CAM -spring.datasource.camunda.driverClassName=com.mysql.jdbc.Driver spring.datasource.camunda.validationQuery=SELECT 1 spring.datasource.camunda.validationQueryTimeout=20000 spring.datasource.camunda.validationInterval=60000 @@ -111,11 +111,10 @@ spring.datasource.camunda.testOnBorrow=true camunda.bpm.history-level=auto #clds datasource connection details -spring.datasource.cldsdb.driver-class-name=com.mysql.jdbc.Driver -spring.datasource.cldsdb.url=jdbc:mysql://localhost:${docker.mariadb.port.host}/cldsdb4?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&maxReconnects=100 +spring.datasource.camunda.driverClassName=org.mariadb.jdbc.Driver +spring.datasource.cldsdb.url=jdbc:mariadb://localhost:${docker.mariadb.port.host}/cldsdb4?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&maxReconnects=100 spring.datasource.cldsdb.username=clds spring.datasource.cldsdb.password=sidnnd83K -spring.datasource.cldsdb.driverClassName=com.mysql.jdbc.Driver spring.datasource.cldsdb.validationQuery=SELECT 1 spring.datasource.cldsdb.validationQueryTimeout=20000 spring.datasource.cldsdb.validationInterval=60000 -- cgit 1.2.3-korg