I'm sharing a single Connection to a file instance of H2 with auto-commit set to false in embedded mode. Everything seems to work fine and I make sure to call connection.commit() after doing any work. However, frequently, I'm finding that when I stop the database and start it back up, data sometimes doesn't actually get persisted to the file and it starts back up saying that table is empty.
Is there anything I can do to guarantee everything is properly synchronized to the database file? I've tried adding a shutdown hook to make sure commit is run and the connection is closed, but that doesn't seem to make much difference. -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/h2-database/a4c38455-de75-4fae-a45d-68ab68eea4c0n%40googlegroups.com.
