GregB <[email protected]> writes:

> Kristian,
>
> Quick question on the in-memory DB.  How do you specify the database should
> be in-memory for an instance of a EmbeddedConnectionPoolDataSource?
>
> Example url - jdbc:derby:memory:testdb;create=true
>
> Connection pool -
> EmbeddedConnectionPoolDataSource ds = new
> EmbeddedConnectionPoolDataSource();
> ds.setDatabaseName("testdb");
> ds.setCreateDatabase("create");
> // Now what to specify in-memory?

I haven't tested it, but I think ds.setDatabaseName("memory:testdb")
should do the trick.

-- 
Knut Anders

Reply via email to