]>
git.argeo.org Git - gpl/argeo-slc.git/blob - modules/gis/org.argeo.slc.gis.position.backend/META-INF/spring/backend.xml
1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <beans xmlns=
"http://www.springframework.org/schema/beans"
3 xmlns:
xsi=
"http://www.w3.org/2001/XMLSchema-instance"
4 xmlns:
p=
"http://www.springframework.org/schema/p" xmlns:
util=
"http://www.springframework.org/schema/util"
6 http://www.springframework.org/schema/beans
7 http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
8 http://www.springframework.org/schema/util
9 http://www.springframework.org/schema/util/spring-util-2.5.xsd
13 <bean id=
"postGisDataStore" factory-bean=
"postGisDataStoreFactory"
14 factory-method=
"createDataStore">
17 <!-- Cannot access the .key property, wait for Spring 3.0 to do it properly
18 <entry key-ref="JDBCDataStore.DATASOURCE" value-ref="dataSource" /> -->
19 <entry key=
"Data Source" value-ref=
"dataSource" />
24 <util:constant id=
"JDBCDataStore.DATASOURCE"
25 static-field=
"org.geotools.jdbc.JDBCDataStoreFactory.DATASOURCE" />
27 <bean id=
"postGisDataStoreFactory" class=
"org.geotools.data.postgis.PostgisNGDataStoreFactory"></bean>
29 <bean id=
"dataSource" class=
"org.apache.commons.dbcp.BasicDataSource"
30 destroy-method=
"close">
31 <property name=
"driverClassName" value=
"org.postgresql.Driver" />
32 <property name=
"url" value=
"jdbc:postgresql://air/test_berlin" />
33 <property name=
"username" value=
"argeo" />
34 <property name=
"password" value=
"argeo" />
35 <property name=
"testOnBorrow" value=
"true" />
36 <property name=
"validationQuery" value=
"SELECT 1" />
37 <property name=
"maxActive" value=
"10" />
38 <property name=
"maxIdle" value=
"2" />