Skip to content

Commit

Permalink
Merge pull request #19 from MeroRai/APPSERV-22
Browse files Browse the repository at this point in the history
APPSERV-22 Removed Derby and replaced it with H2
  • Loading branch information
MeroRai authored Feb 14, 2020
2 parents e72d20c + 06be0c9 commit 401ba7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ you might run into the following issues:
* You will see some spurious JSF warnings on some pages due to a GlassFish
4/Mojarra bug (https://java.net/jira/browse/GLASSFISH-20244). The error is
harmless and can be ignored.
* Sometimes when GlassFish is not shutdown correctly, the Derby database that
* Sometimes when GlassFish is not shutdown correctly, the H2 database that
the application uses get's corrupted, resulting is strange JDBC errors. If
this occurs, you will need to stop the application and clean the database. You
can do this by simply removing \temp\cargo-tracker-database from the file
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
faster. -->
<data-source>
<name>java:app/jdbc/CargoTrackerDatabase</name>
<class-name>org.apache.derby.jdbc.EmbeddedDriver</class-name>
<url>jdbc:derby:/tmp/cargo-tracker-database;create=true</url>
<class-name>org.h2.Driver</class-name>
<url>jdbc:h2:./tmp/cargo-tracker-database;AUTO_SERVER=TRUE</url>
</data-source>
<jms-destination>
<name>java:app/jms/CargoHandledQueue</name>
Expand Down

0 comments on commit 401ba7b

Please sign in to comment.