]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - server/org.argeo.slc.siteserver/bundles/org.argeo.slc.server.hsqldb/META-INF/spring/hsqldb.xml
Change bundle structure
[gpl/argeo-slc.git] / server / org.argeo.slc.siteserver / bundles / org.argeo.slc.server.hsqldb / META-INF / spring / hsqldb.xml
index 0be5483c70c011e48e8f7cb704837a40fe6d2efb..26f0a054d0be537f96568868c710f3d042c90529 100644 (file)
@@ -8,9 +8,18 @@
        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd"
        default-lazy-init="false">
 
-               <import
-               resource="classpath:/org/argeo/slc/hibernate/spring/applicationContext.xml"
-               />
+       <import
+               resource="classpath:/org/argeo/slc/hibernate/spring/applicationContext.xml" />
+
+       <bean
+               class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+               <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
+               <property name="ignoreUnresolvablePlaceholders" value="true" />
+               <property name="locations">
+                       <value>osgibundle:hsqldb.properties
+                       </value>
+               </property>
+       </bean>
 
        <bean id="sessionFactory" parent="slcTemplates.sessionFactory.hibernateBasic">
                <property name="dataSource" ref="dataSource" />
@@ -24,9 +33,9 @@
        </bean>
 
        <bean id="dataSource" class="org.hsqldb.jdbc.jdbcDataSource">
-               <property name="database" value="jdbc:hsqldb:mem:test"/>
-               <property name="user" value="sa"/>
-               <property name="password" value=""/>
-               
+               <property name="database" value="${slc.server.hsqldb.url}" />
+               <property name="user" value="sa" />
+               <property name="password" value="" />
+
        </bean>
 </beans>
\ No newline at end of file