Your URL looks fine.
Looks like a bug somewhere in H2 to me.
But I don't know why the code is ignoring that setting.

The only thing I can suggest is executing this command when your application starts up:
  SET DB_CLOSE_ON_EXIT=FALSE


On 2012-02-15 16:30, zaraki kenpachi wrote:
Here is what I'm using in persistence.xml:
<property name = "javax.persistence.jdbc.url" value = "jdbc:h2:tcp://
localhost/mem:test-db;create=true;DB_CLOSE_ON_EXIT=FALSE"/>

I'm pretty sure that is right, but did I miss something?

I'm using H2 1.3.164.

I can make a small demo maven/jetty/h2 project that displays the issue
if that would be helpful.


On Feb 15, 1:12 am, Noel Grandin<[email protected]>  wrote:
Yes.

That means that the DB_CLOSE_ON_EXIT=FALSE flag is not working. Are you
sure you tested with that flag in place?

On 2012-02-14 16:31, zaraki kenpachi wrote:







from shutdown hook

--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to