-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathapplication-context_JDBC.xml
More file actions
71 lines (60 loc) · 3.26 KB
/
application-context_JDBC.xml
File metadata and controls
71 lines (60 loc) · 3.26 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mongo="http://www.springframework.org/schema/data/mongo"
xsi:schemaLocation="http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<bean id="atomHopperDataSource" class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="org.postgresql.Driver" />
<property name="url" value="jdbc:postgresql://localhost:5432/atomhopper" />
<property name="username" value="postgres" />
<property name="password" value="password" />
<property name="minIdle" value="10" />
<property name="maxIdle" value="25" />
<property name="initialSize" value="10" />
<property name="maxActive" value="50" />
<property name="validationQuery" value="SELECT 1" />
<property name="testWhileIdle" value="true" />
<property name="timeBetweenEvictionRunsMillis" value="10000" />
</bean>
<bean name="atomHopperJdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<constructor-arg name="dataSource" ref="atomHopperDataSource"/>
</bean>
<bean name="jdbc-feed-publisher" class="org.atomhopper.jdbc.adapter.JdbcFeedPublisher">
<property name="jdbcTemplate" ref="atomHopperJdbcTemplate" />
<property name="allowOverrideId" value="true"/>
</bean>
<bean name="jdbc-feed-source" class="org.atomhopper.jdbc.adapter.JdbcFeedSource">
<property name="jdbcTemplate" ref="atomHopperJdbcTemplate" />
<property name="enableLoggingOnShortPage" value="true"/>
</bean>
<bean name="jdbc-feed-publisher1" class="org.atomhopper.jdbc.adapter.JdbcFeedPublisher">
<property name="jdbcTemplate" ref="atomHopperJdbcTemplate" />
<property name="allowOverrideId" value="true"/>
<property name="allowOverrideDate" value="true"/>
</bean>
<bean name="jdbc-feed-source1" class="org.atomhopper.jdbc.adapter.JdbcFeedSource">
<property name="jdbcTemplate" ref="atomHopperJdbcTemplate" />
</bean>
<bean name="feed-paging-processor" class="org.atomhopper.abdera.filter.FeedPagingProcessor"/>
<bean name="role-aware-feed-etag-processor" class="org.atomhopper.abdera.filter.HeaderValueFeedEntityTagProcessor">
<property name="headerName" value="x-access" />
<property name="hashETag" value="true"/>
<property name="headerTagPostfixMap">
<map>
<entry key="level1" value="L1"/>
<entry key="level2" value="L2"/>
</map>
</property>
</bean>
<bean name="selective-uri-json-filter" class="org.atomhopper.abdera.filter.SelectiveURIJSONFilter">
<property name="allowedURIs">
<list>
<value>/namespace2/feed2</value>
</list>
</property>
</bean>
</beans>