mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 06:53:09 +00:00
[DS-3694] Replace an inappropriate system property with a local Hibernate/EHCache property
This commit is contained in:
@@ -17,21 +17,13 @@
|
|||||||
<props>
|
<props>
|
||||||
<prop key="hibernate.dialect">${db.dialect}</prop>
|
<prop key="hibernate.dialect">${db.dialect}</prop>
|
||||||
<prop key="hibernate.default_schema">${db.schema}</prop>
|
<prop key="hibernate.default_schema">${db.schema}</prop>
|
||||||
|
<prop key='net.sf.ehcache.configurationResourceName'>
|
||||||
|
file:${dspace.dir}/config/hibernate-ehcache-config.xml
|
||||||
|
</prop>
|
||||||
</props>
|
</props>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
|
|
||||||
<property name="targetClass" value="java.lang.System" />
|
|
||||||
<property name="targetMethod" value="setProperty" />
|
|
||||||
<property name="arguments">
|
|
||||||
<list>
|
|
||||||
<value>net.sf.ehcache.configurationResourceName</value>
|
|
||||||
<value>file:${dspace.dir}/config/hibernate-ehcache-config.xml</value>
|
|
||||||
</list>
|
|
||||||
</property>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id='dataSource'
|
<bean id='dataSource'
|
||||||
class='org.springframework.jndi.JndiObjectFactoryBean'>
|
class='org.springframework.jndi.JndiObjectFactoryBean'>
|
||||||
<description>
|
<description>
|
||||||
|
Reference in New Issue
Block a user