1 : |
dgarcia |
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" xmlns:p="http://www.springframework.org/schema/p"
|
4 : |
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
5 : |
|
|
xsi:schemaLocation="
|
6 : |
|
|
http://www.springframework.org/schema/beans
|
7 : |
|
|
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
|
8 : |
|
|
http://www.springframework.org/schema/context
|
9 : |
|
|
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
|
10 : |
|
|
|
11 : |
|
|
|
12 : |
|
|
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
13 : |
|
|
<property name="viewClass" value="org.springframework.web.servlet.view.InternalResourceView" />
|
14 : |
|
|
<property name="prefix" value="/" />
|
15 : |
|
|
<property name="suffix" value=".jsp" />
|
16 : |
|
|
</bean>
|
17 : |
|
|
|
18 : |
|
|
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
|
19 : |
|
|
<property name="driverClassName">
|
20 : |
|
|
<value>org.hsqldb.jdbcDriver</value>
|
21 : |
|
|
</property>
|
22 : |
|
|
<property name="url">
|
23 : |
|
|
<!-- <value>jdbc:hsqldb:file:/home/group/smartlm/portal/data/db2;shutdown=true</value> -->
|
24 : |
|
|
<value>jdbc:hsqldb:file:/tmp/db2;shutdown=true</value>
|
25 : |
|
|
</property>
|
26 : |
|
|
<property name="username">
|
27 : |
|
|
<value>sa</value>
|
28 : |
|
|
</property>
|
29 : |
|
|
<property name="password">
|
30 : |
|
|
<value></value>
|
31 : |
|
|
</property>
|
32 : |
|
|
</bean>
|
33 : |
|
|
|
34 : |
|
|
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
|
35 : |
|
|
<property name="dataSource" ref="dataSource"/>
|
36 : |
|
|
<property name="hibernateProperties">
|
37 : |
|
|
<props>
|
38 : |
|
|
<prop key="hibernate.hbm2ddl.auto">verify</prop>
|
39 : |
|
|
<prop key="hibernate.show_sql">false</prop>
|
40 : |
|
|
<prop key="hibernate.c3p0.min_size">5</prop>
|
41 : |
|
|
<prop key="hibernate.c3p0.max_size">20</prop>
|
42 : |
|
|
<prop key="hibernate.c3p0.timeout">1800</prop>
|
43 : |
|
|
<prop key="hibernate.c3p0.max_statements">50</prop>
|
44 : |
|
|
</props>
|
45 : |
|
|
</property>
|
46 : |
|
|
<property name="annotatedClasses">
|
47 : |
|
|
<list>
|
48 : |
|
|
<value>eu.smartlm.abs.portal.security.login.model.User</value>
|
49 : |
|
|
</list>
|
50 : |
|
|
</property>
|
51 : |
|
|
</bean>
|
52 : |
|
|
|
53 : |
|
|
<!-- Specify the Hibernate Transaction Manager -->
|
54 : |
|
|
<!-- <tx:annotation-driven transaction-manager="txManager" /> -->
|
55 : |
|
|
|
56 : |
|
|
<!-- <bean id="txManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
|
57 : |
|
|
<property name="sessionFactory" ref="sessionFactory" />
|
58 : |
|
|
</bean> -->
|
59 : |
|
|
</beans>
|