Created
November 30, 2013 18:06
-
-
Save rvazquezglez/7722388 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- http://bit.ly/1aONFnh --> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:jdbc="http://www.springframework.org/schema/jdbc" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd | |
http://www.springframework.org/schema/context | |
http://www.springframework.org/schema/context/spring-context-3.0.xsd | |
http://www.springframework.org/schema/jdbc | |
http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd"> | |
<context:component-scan base-package="net.tecgurus"/> | |
<context:property-placeholder location="classpath:datasource.properties"/> | |
<bean | |
class="org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor"></bean> | |
<bean id="dataSource" | |
class="org.apache.commons.dbcp.BasicDataSource"> | |
<property name="driverClassName" value="org.h2.Driver"> | |
</property> | |
<property name="url" value="${jdbc.url}"> | |
</property> | |
<property name="username"><value>sa</value></property> | |
<property name="password"><value>sa</value></property> | |
<!-- Propiedades de pool --> | |
<property name="maxActive" value="20"></property> | |
<property name="maxIdle" value="10"></property> | |
<property name="maxWait" value="1000"></property> | |
<property name="defaultAutoCommit" value="false"></property> | |
<property name="removeAbandoned" value="true"></property> | |
<property name="removeAbandonedTimeout" value="60"></property> | |
<property name="logAbandoned" value="true"></property> | |
</bean> | |
<bean id="sessionFactory" | |
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> | |
<property name="dataSource" ref="dataSource"> | |
</property> | |
<property name="mappingDirectoryLocations"> | |
<list> | |
<value>classpath*:net/tecgurus/sistemabancario/model/.</value> | |
</list> | |
</property> | |
<property name="hibernateProperties"> | |
<props> | |
<prop key="hibernate.dialect">org.hibernate.dialect.H2Dialect</prop> | |
<prop key="hibernate.show_sql">true</prop> | |
<prop key="hibernate.current_session_context_class">org.hibernate.context.ThreadLocalSessionContext</prop> | |
</props> | |
</property> | |
</bean> | |
<!-- Beans de acción --> | |
<bean id="consultarClientesAction" | |
class="net.tecgurus.frameworks.controller.ConsultarClientesAction"></bean> | |
</beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment