/webportal/src/main/resources/depthDataConfig.xml
http://alageospatialportal.googlecode.com/ · XML · 51 lines · 41 code · 9 blank · 1 comment · 0 complexity · 70137b76a12b3fcbad3994f43b3139e5 MD5 · raw file
- <?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:aop="http://www.springframework.org/schema/aop"
- xmlns:context="http://www.springframework.org/schema/context"
- xmlns:jee="http://www.springframework.org/schema/jee"
- xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:util="http://www.springframework.org/schema/util"
- xmlns:p="http://www.springframework.org/schema/p"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
- http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
- http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd
- http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd">
- <!-- Datasource for the Depth Servlet -->
- <bean id="dsDepth" class="org.springframework.jdbc.datasource.DriverManagerDataSource" lazy-init="true">
- <property name="driverClassName" value="org.postgresql.Driver" />
- <property name="url" value="jdbc:postgresql://obsidian.bluenet.utas.edu.au:5432/maplayers" />
- <property name="username" value="postgres" />
- <property name="password" value="bNetdb" />
- </bean>
- <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean" lazy-init="true">
- <property name="dataSource" ref="dsDepth"/>
- <property name="mappingResources">
- <list>
- <value>WorldDepth.hbm.xml</value>
- </list>
- </property>
- <property name="hibernateProperties">
- <props>
- <prop key="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop>
- <prop key="hibernate.current_session_context_class">thread</prop>
- </props>
- </property>
- </bean>
- <bean id="worldDepthDao" class="au.org.emii.portal.servlet.WorldDepthDaoImpl" lazy-init="true">
- <property name="sessionFactory">
- <ref bean="sessionFactory"/>
- </property>
- </bean>
- </beans>