/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

  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. <!-- Datasource for the Depth Servlet -->
  17. <bean id="dsDepth" class="org.springframework.jdbc.datasource.DriverManagerDataSource" lazy-init="true">
  18. <property name="driverClassName" value="org.postgresql.Driver" />
  19. <property name="url" value="jdbc:postgresql://obsidian.bluenet.utas.edu.au:5432/maplayers" />
  20. <property name="username" value="postgres" />
  21. <property name="password" value="bNetdb" />
  22. </bean>
  23. <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean" lazy-init="true">
  24. <property name="dataSource" ref="dsDepth"/>
  25. <property name="mappingResources">
  26. <list>
  27. <value>WorldDepth.hbm.xml</value>
  28. </list>
  29. </property>
  30. <property name="hibernateProperties">
  31. <props>
  32. <prop key="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop>
  33. <prop key="hibernate.current_session_context_class">thread</prop>
  34. </props>
  35. </property>
  36. </bean>
  37. <bean id="worldDepthDao" class="au.org.emii.portal.servlet.WorldDepthDaoImpl" lazy-init="true">
  38. <property name="sessionFactory">
  39. <ref bean="sessionFactory"/>
  40. </property>
  41. </bean>
  42. </beans>