gleimar 2012-09-28 20:47:15 +00:00
parent 42884b59ce
commit 3a76f7907f
1 changed files with 10 additions and 21 deletions

View File

@ -1,21 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:p="http://www.springframework.org/schema/p" xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-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/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"> http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
<!-- Hibernate config --> <!-- Hibernate config -->
<context:property-placeholder <context:property-placeholder location="classpath:/com/rjconsultores/ventaboletos/web/cliente/conf/database.properties" />
location="classpath:/com/rjconsultores/ventaboletos/web/cliente/conf/database.properties" />
<context:component-scan base-package="com.rjconsultores.ventaboletos" /> <context:component-scan base-package="com.rjconsultores.ventaboletos" />
<tx:annotation-driven transaction-manager="transactionManager" /> <tx:annotation-driven transaction-manager="transactionManager" />
<bean id="sessionFactory" <bean id="sessionFactory" class="com.rjconsultores.ventaboletos.utilerias.spring.MyAnnotationSessionFactoryBean">
class="com.rjconsultores.ventaboletos.utilerias.spring.MyAnnotationSessionFactoryBean">
<property name="dataSource"> <property name="dataSource">
<ref local="dataSource" /> <ref local="dataSource" />
</property> </property>
@ -289,13 +285,11 @@
</property> </property>
</bean> </bean>
<bean id="transactionManager" <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory" /> <property name="sessionFactory" ref="sessionFactory" />
</bean> </bean>
<bean id="contextApplicationContextProvider" <bean id="contextApplicationContextProvider" class="com.rjconsultores.ventaboletos.web.utilerias.spring.ApplicationContextProvider">
class="com.rjconsultores.ventaboletos.web.utilerias.spring.ApplicationContextProvider">
</bean> </bean>
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
@ -314,19 +308,14 @@
<!-- ====================================================== --> <!-- ====================================================== -->
<!-- Search class from Hibernate-Generic-DAO framework --> <!-- Search class from Hibernate-Generic-DAO framework -->
<!-- ====================================================== --> <!-- ====================================================== -->
<bean id="hibernateSearchSupport" scope="prototype" <bean id="hibernateSearchSupport" scope="prototype" class="com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchSupportImpl">
class="com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchSupportImpl">
<property name="sessionFactory" ref="sessionFactory" /> <property name="sessionFactory" ref="sessionFactory" />
<property name="hibernateSearchProcessor"> <property name="hibernateSearchProcessor">
<bean class="com.trg.search.hibernate.HibernateSearchProcessor" <bean class="com.trg.search.hibernate.HibernateSearchProcessor" factory-method="getInstanceForSessionFactory">
factory-method="getInstanceForSessionFactory">
<constructor-arg ref="sessionFactory" /> <constructor-arg ref="sessionFactory" />
</bean> </bean>
</property> </property>
</bean> </bean>
<bean id="sqlFactory" <bean id="sqlFactory" class="com.rjconsultores.ventaboletos.dao.sqlbuilder.SQLFactory" />
class="com.rjconsultores.ventaboletos.dao.sqlbuilder.SQLFactory" /> <bean id="sqlBuilder" class="com.rjconsultores.ventaboletos.dao.sqlbuilder.SQLBuilder" factory-bean="sqlFactory" factory-method="getBuilder" />
<bean id="sqlBuilder"
class="com.rjconsultores.ventaboletos.dao.sqlbuilder.SQLBuilder"
factory-bean="sqlFactory" factory-method="getBuilder" />
</beans> </beans>