Dear I've installed HAPI-FHIR in CentOS 7.5.1804. I have HAPI-FHIR JPA up and running with Apache Tomcat latest, builded with Maven latest, but I want to use my own database, Oracle 12c.
I've readed the documentation and says that the file FhirServerConfig.java need to be modified, but exist two of these files:
Locate command show the following
/src/main/java/ca/uhn/fhir/jpa/demo/FhirServerConfig.java
/src/main/java/ca/uhn/fhir/jpa/demo/elasticsearch/FhirServerConfig.java
Is necessary modify both files?
And my other doubt is how can I configure the following section for Oracle 12c
public DataSource dataSource() {
BasicDataSource retVal = new BasicDataSource();
retVal.setDriver(new org.apache.derby.jdbc.EmbeddedDriver());
retVal.setUrl("jdbc:derby:directory:target/jpaserver_derby_files;create=true");
retVal.setUsername("");
retVal.setPassword("");
return retVal;
}
And in what part I must to import the Oracle driver?
Thanks in advance!.