On 04/04/2013 16:41, Roman Minko wrote:
> I started syncope with h2 database on tomcat, and have noticed one
> detail in persistence.properties:
> The datasource use is in-memory h2 database. When tomcat goes down, DB
> erased.
> > jpa.url=jdbc:h2:mem:syncopedb;DB_CLOSE_DELAY=-1
> I propose to set H2 create DB at least in user folder:
> > jpa.url=jdbc:h2:~/syncopedb;DB_CLOSE_DELAY=-1
> does it make sense?

Hi Roman,
I guess you are referring to the persistence configuration when running
in embedded mode.

Such configuration is currently derived from the one used by integration
tests: hence the reason why H2 is configured in-memory.

It could be an idea to add a note on the wiki pages [1] [2] saying
something like "do you want to make it persistent? Just change this".

WDYT?

[1]
https://cwiki.apache.org/confluence/display/SYNCOPE/Run+Syncope+in+embedded+mode
[2]
https://cwiki.apache.org/confluence/display/SYNCOPE/Run+Syncope+standalone+distribution

-- 
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/

Reply via email to