<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE beans PUBLIC
  “-//SPRING/DTD BEAN/EN”
  “http://www.springframework.org/dtd/spring-beans.dtd”>

<beans>
  <bean id=”dataSource” class=”org.logicalcobwebs.proxool.ProxoolDataSource” destroy-method=”close”>
  <property name=”driver”><value>${jdbc.driver}</value></property>
  <property name=”driverUrl”><value>${jdbc.url}</value></property>
  <property name=”user”><value>${jdbc.username}</value></property>
  <property name=”password”><value>${jdbc.password}</value></property>
  <property name=”alias”><value>xfort</value></property>
  <property name=”houseKeepingTestSql”><value>SELECT 1</value></property>
  <property name=”testBeforeUse”><value>false</value></property>
  <property name=”maximumActiveTime”><value>86400000</value></property>
  <property name=”maximumConnectionCount”><value>${proxool.maximum-connection-count}</value></property>
  <property name=”delegateProperties”><value>user=${jdbc.username},password=${jdbc.password}</value></property>
</bean>

<bean id=”sessionFactory” class=”org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean”>
  <property name=”dataSource”><ref bean=”dataSource” /></property>
  <property name=”hibernateProperties”>
    <props>
      <prop key=”hibernate.dialect”>${hibernate.dialect}</prop>
      <prop key=”hibernate.format_sql”>true</prop>
      <prop key=”hibernate.show_sql”>false</prop>
      <prop key=”hibernate.cache.use_second_level_cache”>false</prop>
      <prop key=”hibernate.cache.provider_class”>org.hibernate.cache.EhCacheProvider</prop>
      <prop key=”hibernate.current_session_context_class”>thread</prop>
      <prop key=”hibernate.connection.release_mode”>after_transaction</prop>
      <prop key=”hibernate.transaction.factory_class”>org.hibernate.transaction.JDBCTransactionFactory</prop>
      <prop key=”hibernate.transaction.auto_close_session”>false</prop>
    </props>
  </property>
  <property name=”annotatedPackages”>
    <list>
      <value>forth.model</value>
    </list>
  </property>
  <property name=”annotatedClasses”>
    <list>
      <value>zbwei.model.ModelName</value>
    </list>
  </property>
  </bean>
</beans>