From: Mathieu Baudier Date: Thu, 24 Apr 2008 10:08:06 +0000 (+0000) Subject: Add local persistent data source X-Git-Tag: argeo-slc-2.1.7~2995 X-Git-Url: http://git.argeo.org/?a=commitdiff_plain;h=3f5c0ed838ca85f37f47606fe54f4b866a41af63;p=gpl%2Fargeo-slc.git Add local persistent data source git-svn-id: https://svn.argeo.org/slc/trunk@1045 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- diff --git a/org.argeo.slc.webapp/src/main/webapp/WEB-INF/applicationContext.xml b/org.argeo.slc.webapp/src/main/webapp/WEB-INF/applicationContext.xml index 7e429ad6b..6e3f7899a 100644 --- a/org.argeo.slc.webapp/src/main/webapp/WEB-INF/applicationContext.xml +++ b/org.argeo.slc.webapp/src/main/webapp/WEB-INF/applicationContext.xml @@ -5,10 +5,42 @@ + + + WEB-INF/local.properties + + + + + slcTemplates.dataSource.inMemoryTestHSQL + + + + + + parent="slcTemplates.sessionFactory.hibernateBasic"> + + + + + + + + + + + + + diff --git a/org.argeo.slc.webapp/src/main/webapp/WEB-INF/local-template.properties b/org.argeo.slc.webapp/src/main/webapp/WEB-INF/local-template.properties new file mode 100644 index 000000000..17ff29cdd --- /dev/null +++ b/org.argeo.slc.webapp/src/main/webapp/WEB-INF/local-template.properties @@ -0,0 +1,11 @@ +# Rename this file to local.properties + +# For in memory database switch following lines +#dataSourceBean=slcTemplates.dataSource.inMemoryTestHSQL +dataSourceBean=persistentDataSource + +# URL of the peristent database +jdbcUrl=jdbc:hsqldb:file://;shutdown=true +# Under Windows use the following form (with /!) +#jdbcUrl=jdbc:hsqldb:file:/C:/dev/test/dbSlc/db;shutdown=true +