I had the same problem. Using the additional attribute'DB_CLOSE_DELAY=-1' fixed it for me. example: jdbc:h2:mem:datajpa;DB_CLOSE_DELAY=-1 More resources: http://boplicity.nl/confluence/display/Java/Unit+testing+JPA+-+Hibernate+components+with+in-memory+H2+database
Op dinsdag 30 augustus 2011 19:46:53 UTC+2 schreef Thomas Mueller het volgende: > > Hi, > > To find out if the database is closed between the calls, could you try > what happens if you use a a persistent H2 database? (database URL > jdbc:h2:/data/db/test or so). > > Regards, > Thomas > > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To view this discussion on the web visit https://groups.google.com/d/msg/h2-database/-/PgV49CcwoW4J. 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.
