Commit 35f9983e authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

nfs: spring: init chimera db on startup

use liquibase changeset provided by chimera-0.0.10
parent 6ae32c59
#
# JDBC properties for Chimera
#
chimera.db.changeset=resources/chimera-db-changeset.xml
chimera.db.changeset=classpath:org/dcache/chimera/changelog/changelog-master.xml
chimera.db.driver=org.hsqldb.jdbcDriver
chimera.db.url=jdbc:hsqldb:mem:chimera
chimera.db.user=sa
......
......@@ -47,7 +47,14 @@
<!--
FileSystem engine. Currently only Chimera is supported
-->
<bean id="fileSystem" class="org.dcache.chimera.JdbcFs">
<bean id="liquibase" class="liquibase.integration.spring.SpringLiquibase">
<property name="dataSource" ref="dataSource" />
<property name="changeLog" value="${chimera.db.changeset}" />
<property name="contexts" value="production" />
</bean>
<bean id="fileSystem" class="org.dcache.chimera.JdbcFs" depends-on="liquibase">
<description>Chimera Filesystem</description>
<constructor-arg ref="dataSource" />
<constructor-arg value="${chimera.db.dialect}" />
......@@ -178,4 +185,5 @@
</map>
</property>
</bean>
</beans>
......@@ -225,9 +225,9 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>8.4-701.jdbc3</version>
<groupId>hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
......@@ -249,7 +249,11 @@
<artifactId>guava</artifactId>
<version>r07</version>
</dependency>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<version>2.0.1</version>
</dependency>
<!--
LOCAL JARS
-->
......@@ -261,7 +265,7 @@
<dependency>
<groupId>org.dcache.chimera</groupId>
<artifactId>chimera-core</artifactId>
<version>0.0.9</version>
<version>0.0.10-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.dcache.common</groupId>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment