Fix build issues
This commit is contained in:
13
README.md
13
README.md
@@ -20,7 +20,7 @@ mvn jetty:run
|
|||||||
|
|
||||||
Then, browse to the following link to use the server:
|
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
|
# Deploying to a Container
|
||||||
|
|
||||||
@@ -74,3 +74,14 @@ FLUSH PRIVILEGES;
|
|||||||
* hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
|
* hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
|
||||||
|
|
||||||
It is important to use MySQL5Dialect when using MySQL version 5+.
|
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)
|
||||||
|
|
||||||
|
|||||||
12
pom.xml
12
pom.xml
@@ -11,7 +11,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>ca.uhn.hapi.fhir</groupId>
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
||||||
<artifactId>hapi-fhir</artifactId>
|
<artifactId>hapi-fhir</artifactId>
|
||||||
<version>3.7.0</version>
|
<version>3.8.0-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<groupId>ca.uhn.hapi.fhir.demo</groupId>
|
<groupId>ca.uhn.hapi.fhir.demo</groupId>
|
||||||
@@ -129,14 +129,6 @@
|
|||||||
<groupId>org.apache.derby</groupId>
|
<groupId>org.apache.derby</groupId>
|
||||||
<artifactId>derby</artifactId>
|
<artifactId>derby</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.derby</groupId>
|
|
||||||
<artifactId>derbynet</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.derby</groupId>
|
|
||||||
<artifactId>derbyclient</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- The following dependencies are only needed for automated unit tests, you do not neccesarily need them to run the example. -->
|
<!-- The following dependencies are only needed for automated unit tests, you do not neccesarily need them to run the example. -->
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -204,7 +196,7 @@
|
|||||||
<version>9.4.8.v20180619</version>
|
<version>9.4.8.v20180619</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<webApp>
|
<webApp>
|
||||||
<contextPath>/</contextPath>
|
<contextPath>/hapi-fhir-jpaserver</contextPath>
|
||||||
<allowDuplicateFragmentNames>true</allowDuplicateFragmentNames>
|
<allowDuplicateFragmentNames>true</allowDuplicateFragmentNames>
|
||||||
</webApp>
|
</webApp>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
# Adjust this to set the version of FHIR supported by this server. See
|
# 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
|
fhir_version=DSTU3
|
||||||
|
|
||||||
# This is the address that the FHIR server will report as its own address.
|
# This is the address that the FHIR server will report as its own address.
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ import org.junit.AfterClass;
|
|||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.nio.file.Paths;
|
import java.nio.file.Paths;
|
||||||
import java.util.concurrent.Future;
|
import java.util.concurrent.Future;
|
||||||
@@ -151,6 +150,8 @@ public class ExampleServerR4IT {
|
|||||||
ourCtx.getRestfulClientFactory().setSocketTimeout(1200 * 1000);
|
ourCtx.getRestfulClientFactory().setSocketTimeout(1200 * 1000);
|
||||||
ourServerBase = HapiProperties.getServerAddress();
|
ourServerBase = HapiProperties.getServerAddress();
|
||||||
ourServerBase = "http://localhost:" + ourPort + "/hapi-fhir-jpaserver/fhir/";
|
ourServerBase = "http://localhost:" + ourPort + "/hapi-fhir-jpaserver/fhir/";
|
||||||
|
|
||||||
|
ourClient = ourCtx.newRestfulGenericClient(ourServerBase);
|
||||||
ourClient.registerInterceptor(new LoggingInterceptor(true));
|
ourClient.registerInterceptor(new LoggingInterceptor(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user