/
config-spring-geonetwork.xml
76 lines (63 loc) · 2.89 KB
/
config-spring-geonetwork.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?xml version="1.0" encoding="UTF-8"?>
<beans default-lazy-init="true"
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
" >
<import resource="config-security/config-security.xml" />
<import resource="classpath:JZkitApplicationContext.xml" />
<import resource="config-db/initial_data.xml" />
<import resource="config-print/config-spring-print.xml" />
<!-- Uncomment if you want to use a non-shapefile datastore -->
<!--<import resource="config-db/postgis-shared-datasource.xml"/> -->
<!--<import resource="config-db/postgis-alternate-datasource.xml"/> -->
<!-- Import the versioning configuration (subversion etc...) -->
<import resource="config-versioning.xml" />
<bean id="scheduler"
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="applicationContextSchedulerContextKey" value="applicationContext" />
</bean>
<bean id="luceneDirectoryFactory" class="org.fao.geonet.kernel.search.index.FSDirectoryFactory"
lazy-init="true" />
<bean id="httpRequestFactor" class="org.fao.geonet.utils.GeonetHttpRequestFactory">
<property name="numberOfConcurrentRequests" value="30" />
</bean>
<bean id="defaultLanguage" class="java.lang.String">
<constructor-arg index="0" value="eng" />
</bean>
<!-- Define the languages in the UI. Seems like these should come from database
at some point but at the moment they are needed here. -->
<util:set id="languages">
<value>ara</value>
<value>cat</value>
<value>chi</value>
<value>dut</value>
<value>eng</value>
<value>fin</value>
<value>fre</value>
<value>ger</value>
<value>ita</value>
<value>nor</value>
<value>pol</value>
<value>por</value>
<value>rus</value>
<value>spa</value>
<value>tur</value>
</util:set>
<util:map id="jpaPropertyMap">
<entry key="shared-cache-mode" value="ENABLE_SELECTIVE" />
<entry key="javax.persistence.lock.timeout" value="30000" />
<entry key="org.hibernate.flushMode" value="AUTO" />
<entry key="access" value="PROPERTY" />
<entry key="hibernate.id.new_generator_mappings" value="true" />
<entry key="hibernate.cache.use_second_level_cache" value="true" />
<!--<entry key="hibernate.cache.region.factory_class" value="org.hibernate.cache.internal.NoCachingRegionFactory"/> -->
<entry key="hibernate.cache.region.factory_class" value="org.hibernate.cache.ehcache.EhCacheRegionFactory" />
<entry key="hibernate.jdbc.batch_size" value="3" />
<entry key="hibernate.jdbc.batch_versioned_data" value="true" />
<entry key="hibernate.enable_lazy_load_no_trans" value="true" />
</util:map>
</beans>