-<?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:tx="http://www.springframework.org/schema/tx"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-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/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd"
- default-lazy-init="false">
-
- <import
- resource="classpath:/org/argeo/slc/hibernate/spring/applicationContext.xml" />
-
- <bean
- class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
- <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
- <property name="locations">
- <value>osgibundle:mysql.properties
- </value>
- </property>
- </bean>
-
- <bean id="sessionFactory" parent="slcTemplates.sessionFactory.hibernateBasic">
- <property name="dataSource" ref="dataSource" />
- <property name="hibernateProperties">
- <value><![CDATA[
- hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
- hibernate.hbm2ddl.auto=update
- hibernate.connection.autocommit=false
- ]]></value>
- </property>
- </bean>
- <!--
- <bean id="dataSource"
- class="org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy">
- <property name="targetDataSource"> <bean
- class="org.springframework.jdbc.datasource.SingleConnectionDataSource"
- destroy-method="destroy"> <property name="driverClassName"
- value="com.mysql.jdbc.Driver" /> <property name="url"
- value="jdbc:mysql://localhost/sparta_prod" /> <property
- name="username" value="root" /> <property name="password" value="" />
- <property name="suppressClose" value="true" /> <property
- name="autoCommit" value="false" /> </bean> </property> </bean>
- -->
- <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
- destroy-method="close">
- <property name="driverClassName" value="com.mysql.jdbc.Driver" />
- <property name="url" value="${argeo.server.jdbc.url}" />
- <property name="username" value="${argeo.server.jdbc.username}" />
- <property name="password" value="${argeo.server.jdbc.password}" />
- <property name="testOnBorrow" value="true" />
- <property name="validationQuery" value="SELECT 1" />
- <property name="maxActive" value="10" />
- <property name="maxIdle" value="2" />
- </bean>
-
-
-
-</beans>
\ No newline at end of file