score:0
hsqldb has a way to automatically shutdown the database when the last connection is closed. you need to add shutdown=true
as a url property:
url = "jdbc:hsqldb:mem:inmemory;shutdown=true"
see more details in the docs:
http://hsqldb.org/doc/2.0/guide/dbproperties-chapt.html#n15641
Source: stackoverflow.com
Related Query
- java.lang.OutOfMemoryError embedding HDBSQL in Play
- Embedding Java libraries (Solr) in Play Framework?
- One Play 2 Framework App - use both java and scala
- Calling a Scala from Java Play Framework which takes a ClassTag
- How to add AWS Java SDK to Scala / Play project
- Mapped Diagnostic Context logging with play framewok and akka in java
- Examples of Java frameworks which don't play well with Scala
- Server Architecture for hosting Java PLAY application in the cloud
- How to force Play 2.1 to compile against other Java version
- Play Framework: Mixing Java and Scala controller/views
- Can I use groovy templating instead of scala for Play 2.0 based Java applications?
- Java controllers in Scala project in play framework?
- Unit testing file upload in a controller with Java Play Framework 2.3.x
- Escaping HTML in a Java Play Framework Scala Template
- How to use the Play Framework with Google App Engine with locally installed Java 7?
- Difference between static controller and non static controller in play framework with Java
- Using scala and java in play framework 2.1 : Session usage
- Java Play akka project migration from jdk8 to jdk11
- Keep session in subsequent Java calls to Play 2.0's fakeRequest
- Mixing scala and java in Play Framework
- Format a double without decimals & adding commas for thousands in Scala Java Play framework
- Can I use the new java 8 time API within a scala Play 2.3.8 project?
- Play framework - overwrite onRouteRequest in java
- Play 2 framework: scala iterate through fields of java objects in view
- I can no longer access Lang within a Controller after upgrading to Play 2.3.0 for Scala
- Does Play Framework with the Scala plugin support MVC and the Java API?
- Installing Play framework on Mavericks, java 1.8.0_05
- How to do pagination using java in play framework?
- How to use Java libraries asynchronously in a Scala Play 2.0 application?
- Java OutOfMemoryError on sbt assembly
More Query from same tag
- Spark - extracting numeric values from an alphanumeric string using regex
- How to read custom multiline log using Spark
- What are ways to unit test Rest API clients - i.e. testing that the right Rest requests are sent
- How to match scala generic type with trait
- Scala "balance the scopes" recursion
- Any built-in scala cache feature with size limit
- Combining different nested monads in for-comprehension
- Spark dataframe pivot reshaping with extra column
- Generics error: more specific type does not coform to more generic type
- Use maven plugin on SBT
- Converting a column from a schemaRDD to a string array
- Extract Number from string into a list in Scala
- gatling - extract cookie value string during test
- How to access elemens in Row RDD in SCALA
- How to submit batch jar Spark jobs by livy Programmatic API
- Dataframe: how to groupBy/count then order by count in Scala
- Scala+ReactiveMongo db.runCommand("serverStatus")
- How to skip wrapping to Try if the argument is already a Try-instance?
- Iterators over same collection in for-loop
- Scala Postfix operator warning contradicts with Scaladoc
- Iterate over table filling 2 HasSets in a functional way in Scala
- join Not working in spark 1.5.2 with more than 5 data frame
- What's a better way of generating two maps using a Sequence of Strings (as keys)?
- Selecting columns of Dataframe in Spark Scala
- Fixed length parsing in spark scala
- Query condition missed key schema element: source_transaction_id in dynamoDB Scala
- How to send FormData In Http Post using Spray
- Spark 2.0 missing spark implicits
- Is there a difference in Scala between Seq[T] and T*?
- Does ScalaMock support mocking of (companion) objects and constructors?