From e6405c99fbb3f960924ef4fc143958fa38fa0892 Mon Sep 17 00:00:00 2001 From: mochaholic Date: Wed, 18 Feb 2015 17:00:40 -0700 Subject: [PATCH] Added (commented-out) mysql configs to hapi-fhir-server-database-config.xml and the corresponding class to facilitate mysql-based deployment. --- .../java/ca/uhn/fhirtest/MySqlServer.java | 20 +++++++++++++ .../hapi-fhir-server-database-config.xml | 28 ++++++++++++++++--- 2 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 hapi-fhir-jpaserver-uhnfhirtest/src/main/java/ca/uhn/fhirtest/MySqlServer.java diff --git a/hapi-fhir-jpaserver-uhnfhirtest/src/main/java/ca/uhn/fhirtest/MySqlServer.java b/hapi-fhir-jpaserver-uhnfhirtest/src/main/java/ca/uhn/fhirtest/MySqlServer.java new file mode 100644 index 00000000000..31610b254cd --- /dev/null +++ b/hapi-fhir-jpaserver-uhnfhirtest/src/main/java/ca/uhn/fhirtest/MySqlServer.java @@ -0,0 +1,20 @@ +package ca.uhn.fhirtest; + +import org.springframework.beans.factory.DisposableBean; +import org.springframework.beans.factory.InitializingBean; + +/** + * Created by mochaholic on 18/02/2015. + */ +public class MySqlServer implements InitializingBean, DisposableBean { + private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(MySqlServer.class); + + @Override + public void destroy() throws Exception { + } + + @Override + public void afterPropertiesSet() throws Exception { + } + +} \ No newline at end of file diff --git a/hapi-fhir-jpaserver-uhnfhirtest/src/main/webapp/WEB-INF/hapi-fhir-server-database-config.xml b/hapi-fhir-jpaserver-uhnfhirtest/src/main/webapp/WEB-INF/hapi-fhir-server-database-config.xml index 32b386941d4..80719eaa17a 100644 --- a/hapi-fhir-jpaserver-uhnfhirtest/src/main/webapp/WEB-INF/hapi-fhir-server-database-config.xml +++ b/hapi-fhir-jpaserver-uhnfhirtest/src/main/webapp/WEB-INF/hapi-fhir-server-database-config.xml @@ -1,7 +1,8 @@ + + + @@ -36,7 +43,19 @@ - + + + + @@ -47,6 +66,7 @@ +