Created
October 12, 2012 08:35
-
-
Save sizovs/3878080 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"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" | |
xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" | |
xmlns:jdbc="http://www.springframework.org/schema/jdbc" xmlns:aop="http://www.springframework.org/schema/aop" | |
xmlns:util="http://www.springframework.org/schema/util" xmlns:task="http://www.springframework.org/schema/task" | |
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/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd | |
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd | |
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd | |
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd | |
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd | |
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd | |
" | |
default-lazy-init="false"> | |
<context:annotation-config /> | |
<context:component-scan base-package="com.ofg.commons" /> | |
<context:component-scan base-package="com.ofg.loans"> | |
<context:exclude-filter type="aspectj" expression="com.ofg.loans.web.*"/> | |
</context:component-scan> | |
<tx:annotation-driven /> | |
<aop:aspectj-autoproxy /> | |
<bean id="sessionFactory" | |
class=" org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean" | |
depends-on="transactionManager"> | |
<property name="dataSource" ref="dataSource" /> | |
<property name="packagesToScan" | |
value="com.ofg.loans.domain.model, | |
com.ofg.loans.domain.model.client, | |
com.ofg.loans.domain.model.payment, | |
com.ofg.loans.domain.model.account, | |
com.ofg.loans.domain.model.loan, | |
com.ofg.loans.domain.minicredit.model, | |
com.ofg.loans.domain.consumer.model, | |
com.ofg.loans.backoffice.security.model, | |
com.ofg.loans.domain.eshop.model" /> | |
<property name="hibernateProperties" ref="hibernateProperties" /> | |
<property name="configLocation" value="classpath:hibernate.cfg.xml" /> | |
</bean> | |
<bean id="debts.jersey.wsclient" class="com.ofg.loans.infrastructure.ws.impl.JerseyClient"> | |
<constructor-arg value="${debts.url}" /> | |
</bean> | |
<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl"> | |
<property name="username" value="${mail.user}" /> | |
<property name="password" value="${mail.password}" /> | |
<property name="host" value="${mail.smtpHost}" /> | |
<property name="defaultEncoding" value="UTF-8" /> | |
<property name="javaMailProperties"> | |
<props> | |
<prop key="mail.smtp.auth">true</prop> | |
</props> | |
</property> | |
</bean> | |
<bean id="cacheManager" | |
class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" /> | |
<bean id="frontendCmsService" class="com.ofg.loans.cms.FrontendCmsServiceBean"> | |
<constructor-arg index="0" ref="webCms" /> | |
</bean> | |
<bean id="backedCmsService" class="com.ofg.loans.cms.BackendCmsServiceBean"> | |
<constructor-arg index="0" ref="backendCms" /> | |
</bean> | |
</beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment