From 632d4ee97b486ff0c11f863cf0acde779ae4b478 Mon Sep 17 00:00:00 2001 From: James Agnew Date: Sun, 31 Mar 2019 13:11:04 -0400 Subject: [PATCH] Fix build issues --- README.md | 13 ++++++++++++- pom.xml | 12 ++---------- src/main/resources/hapi.properties | 3 ++- .../ca/uhn/fhir/jpa/starter/ExampleServerR4IT.java | 3 ++- 4 files changed, 18 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 7def907..840f40d 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ mvn jetty:run Then, browse to the following link to use the server: -[http://localhost:8080/](http://localhost:8080/) +[http://localhost:8080/hapi-fhir-jpaserver/](http://localhost:8080/hapi-fhir-jpaserver/) # Deploying to a Container @@ -74,3 +74,14 @@ FLUSH PRIVILEGES; * hibernate.dialect=org.hibernate.dialect.MySQL5Dialect It is important to use MySQL5Dialect when using MySQL version 5+. + +# Enabling Subscriptions + +The server may be configured with subscription support by enabling properties in the [hapi.properties](https://github.com/hapifhir/hapi-fhir-jpaserver-starter/blob/master/src/main/resources/hapi.properties) file: + +* `subscription.resthook.enabled` - Enables REST Hook subscriptions, where the server will make an outgoing connection to a remote REST server + +* `subscription.email.enabled` - Enables email subscriptions. Note that you must also provide the connection details for a usable SMTP server. + +* `subscription.websocket.enabled` - Enables websocket subscriptions. With this enabled, your server will accept incoming websocket connections on the following URL (this example uses the default context path and port, you may need to tweak depending on your deployment environment): [ws://localhost:8080/hapi-fhir-jpaserver/websocket](ws://localhost:8080/hapi-fhir-jpaserver/websocket) + diff --git a/pom.xml b/pom.xml index ca54c6b..736b08b 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ ca.uhn.hapi.fhir hapi-fhir - 3.7.0 + 3.8.0-SNAPSHOT ca.uhn.hapi.fhir.demo @@ -129,14 +129,6 @@ org.apache.derby derby - - org.apache.derby - derbynet - - - org.apache.derby - derbyclient - @@ -204,7 +196,7 @@ 9.4.8.v20180619 - / + /hapi-fhir-jpaserver true diff --git a/src/main/resources/hapi.properties b/src/main/resources/hapi.properties index 8b661b5..e128f2c 100644 --- a/src/main/resources/hapi.properties +++ b/src/main/resources/hapi.properties @@ -1,6 +1,7 @@ # Adjust this to set the version of FHIR supported by this server. See -# FhirVersionEnum for a list of available constants. +# FhirVersionEnum for a list of available constants. Example values include +# DSTU2, DSTU3, R4. fhir_version=DSTU3 # This is the address that the FHIR server will report as its own address. diff --git a/src/test/java/ca/uhn/fhir/jpa/starter/ExampleServerR4IT.java b/src/test/java/ca/uhn/fhir/jpa/starter/ExampleServerR4IT.java index 3d87090..bff12bb 100644 --- a/src/test/java/ca/uhn/fhir/jpa/starter/ExampleServerR4IT.java +++ b/src/test/java/ca/uhn/fhir/jpa/starter/ExampleServerR4IT.java @@ -22,7 +22,6 @@ import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; -import java.io.IOException; import java.net.URI; import java.nio.file.Paths; import java.util.concurrent.Future; @@ -151,6 +150,8 @@ public class ExampleServerR4IT { ourCtx.getRestfulClientFactory().setSocketTimeout(1200 * 1000); ourServerBase = HapiProperties.getServerAddress(); ourServerBase = "http://localhost:" + ourPort + "/hapi-fhir-jpaserver/fhir/"; + + ourClient = ourCtx.newRestfulGenericClient(ourServerBase); ourClient.registerInterceptor(new LoggingInterceptor(true)); }