Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APPSERV-22 Removed Derby and replaced it with H2 #19

Merged
merged 2 commits into from
Feb 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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