Integrate the latest smart-util changes into smart-dao
[smart-dao.git] / smart-version / smart-version-jgit-impl / src / test / resources / com / smartitengineering / smart-dao / smart-version-jgit / test-app-context.xml
bloba5a49edbf5411640883250c60f2537ff965845d7
1 <?xml version="1.0" encoding="UTF-8"?>
3 <!--
4  *   
5  * This is a common dao with basic CRUD operations and is not limited to any 
6  * persistent layer implementation
7  * 
8  * Copyright (C) 2008  Imran M Yousuf (imyousuf@smartitengineering.com)
9  * 
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 3 of the License, or (at your option) any later version.
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Lesser General Public License for more details.
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21  *
22  *
23 -->
25 <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "spring-beans.dtd"  >
26 <beans>
27     <bean id="propertyConfigurer" class="com.smartitengineering.util.bean.spring.PropertiesLocatorConfigurer">
28         <property name="smartLocations">
29             <list>
30                 <value>com/smartitengineering/smart-dao/smart-version-jgit/db-config.properties</value>
31             </list>
32         </property>
33         <property name="properties" >
34             <props>
35                 <prop key="hibernate.connection.driver_class">${com.smartitengineering.smart-dao.smart-version.jgit.connection.driver_class}
36                 </prop>
37                 <prop key="hibernate.connection.url">${com.smartitengineering.smart-dao.smart-version.jgit.connection.url}
38                 </prop>
39                 <prop key="hibernate.connection.username">${com.smartitengineering.smart-dao.smart-version.jgit.connection.username}
40                 </prop>
41                 <prop key="hibernate.connection.password">${com.smartitengineering.smart-dao.smart-version.jgit.connection.password}
42                 </prop>
43                 <prop key="hibernate.dialect">${com.smartitengineering.smart-dao.smart-version.jgit.dialect}
44                 </prop>
45                 <prop key="hibernate.show_sql">${com.smartitengineering.smart-dao.smart-version.jgit.show_sql}
46                 </prop>
47                 <prop key="hibernate.autoCommit">${com.smartitengineering.smart-dao.smart-version.jgit.autoCommit}
48                 </prop>
49                 <prop key="hibernate.hbm2ddl.auto">${com.smartitengineering.smart-dao.smart-version.jgit.hbm2ddl.auto}
50                 </prop>
51                 <prop key="hibernate.query.substitutions">${com.smartitengineering.smart-dao.smart-version.jgit.query.substitutions}
52                 </prop>
53             </props>
54         </property>
55     </bean>
57     <!-- Local C3P0 DataSource that works in any environment -->
58     <!-- (Both DataSource implementations have a "close" method to be called on shutdown) -->
59     <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">
60         <property name="driverClass">
61             <value>${hibernate.connection.driver_class}</value>
62         </property>
63         <property name="jdbcUrl">
64             <value>${hibernate.connection.url}</value>
65         </property>
66         <property name="user">
67             <value>${hibernate.connection.username}</value>
68         </property>
69         <property name="password">
70             <value>${hibernate.connection.password}</value>
71         </property>
72         <property name="acquireIncrement">
73             <value>5</value>
74         </property>
75         <property name="checkoutTimeout">
76             <value>5000</value>
77         </property>
78         <property name="initialPoolSize">
79             <value>5</value>
80         </property>
81         <property name="maxIdleTime">
82             <value>120</value>
83         </property>
84         <!-- Will never expire (seconds)-->
85         <property name="maxPoolSize">
86             <value>30</value>
87         </property>
88         <property name="maxStatements">
89             <value>500</value>
90         </property>
91         <property name="maxStatementsPerConnection">
92             <value>12</value>
93         </property>
94         <property name="minPoolSize">
95             <value>3</value>
96         </property>
97         <property name="numHelperThreads">
98             <value>4</value>
99         </property>
100     </bean>
101     <import resource="service-app-context.xml" />
102 </beans>