Monday, March 24, 2014

H2 in-memory database. Table not found

If you have your connection-url configured like this

the content of the database is lost at the moment the last connection is closed.
If you want to keep your content you have to configure the url like this
jdbc:h2:mem:test;DB_CLOSE_DELAY=-1
If doing so, h2 will keep its content as long as the vm lives.

No comments:

Post a Comment