/webportal/src/main/resources/depthDataConfig.xml
XML | 51 lines | 41 code | 9 blank | 1 comment | 0 complexity | 70137b76a12b3fcbad3994f43b3139e5 MD5 | raw file
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:aop="http://www.springframework.org/schema/aop" 5 xmlns:context="http://www.springframework.org/schema/context" 6 xmlns:jee="http://www.springframework.org/schema/jee" 7 xmlns:tx="http://www.springframework.org/schema/tx" 8 xmlns:util="http://www.springframework.org/schema/util" 9 xmlns:p="http://www.springframework.org/schema/p" 10 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd 11 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd 12 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd 13 http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd 14 http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd 15 http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> 16 17 <!-- Datasource for the Depth Servlet --> 18 <bean id="dsDepth" class="org.springframework.jdbc.datasource.DriverManagerDataSource" lazy-init="true"> 19 <property name="driverClassName" value="org.postgresql.Driver" /> 20 <property name="url" value="jdbc:postgresql://obsidian.bluenet.utas.edu.au:5432/maplayers" /> 21 <property name="username" value="postgres" /> 22 <property name="password" value="bNetdb" /> 23 </bean> 24 25 26 <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean" lazy-init="true"> 27 <property name="dataSource" ref="dsDepth"/> 28 <property name="mappingResources"> 29 <list> 30 <value>WorldDepth.hbm.xml</value> 31 </list> 32 </property> 33 <property name="hibernateProperties"> 34 <props> 35 <prop key="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop> 36 <prop key="hibernate.current_session_context_class">thread</prop> 37 </props> 38 </property> 39 </bean> 40 41 42 43 <bean id="worldDepthDao" class="au.org.emii.portal.servlet.WorldDepthDaoImpl" lazy-init="true"> 44 <property name="sessionFactory"> 45 <ref bean="sessionFactory"/> 46 </property> 47 </bean> 48 49 50 51</beans>