Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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:context="http://www.springframework.org/schema/context"
- xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:aop="http://www.springframework.org/schema/aop"
- xmlns:jdbc="http://www.springframework.org/schema/jdbc"
- xmlns:util="http://www.springframework.org/schema/util"
- xmlns:cxf="http://cxf.apache.org/core"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
- http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
- http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
- http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
- http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
- <util:list id="redlink.framework.properties">
- <value>classpath:/properties/redlink-framework.properties</value>
- <value>classpath:/properties/adhesiones-datasource.properties</value>
- <value>classpath:/properties/adhesiones-general.properties</value>
- <value>classpath:/properties/adhesiones-ldap.properties</value>
- <value>classpath:/properties/adhesiones-logging.properties</value>
- <value>classpath:/properties/adhesiones-hibernate.properties</value>
- <value>classpath:/properties/adhesiones-rest.properties</value>
- <value>classpath:/properties/secure/adhesiones-crypto.properties</value>
- <value>classpath:/properties/secure/adhesiones-users.properties</value>
- </util:list>
- <bean id="adhesiones.general.configuration" class="org.apache.commons.configuration.PropertiesConfiguration">
- <constructor-arg type="java.net.URL" >
- <value>classpath:/properties/adhesiones-recargable.properties</value>
- </constructor-arg>
- <property name="reloadingStrategy" ref="adhesiones.reloading.strategy.general.configuration" />
- </bean>
- <bean id="adhesiones.reloading.strategy.general.configuration" class="org.apache.commons.configuration.reloading.FileChangedReloadingStrategy">
- <property name="refreshDelay" value="${cfg.refreshdelay}" />
- </bean>
- </beans>
- <?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:context="http://www.springframework.org/schema/context"
- xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:aop="http://www.springframework.org/schema/aop"
- xmlns:jdbc="http://www.springframework.org/schema/jdbc"
- xmlns:util="http://www.springframework.org/schema/util"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
- http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
- http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
- http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd">
- <!-- Archivos de contexto de Spring propios del framework -->
- <import resource="classpath*:ctx/spring/redlink-framework-main-spring.xml"/>
- <!-- Archivos de contexto de Spring propios de la aplicacion -->
- <import resource="classpath*:ctx/spring/aop/adhesiones-aop-spring.xml"/>
- <import resource="classpath*:ctx/spring/cache/adhesiones-cache-spring.xml" />
- <import resource="classpath*:ctx/spring/crypto/adhesiones-crypto-spring.xml" />
- <import resource="classpath*:ctx/spring/dao/adhesiones-dao-spring.xml" />
- <import resource="classpath*:ctx/spring/datasource/tomcat/adhesiones-datasource-spring.xml" />
- <!-- <import resource="classpath*:ctx/spring/datasource/weblogic/adhesiones-datasource-spring.xml" /> -->
- <import resource="classpath*:ctx/spring/hibernate/adhesiones-hibernate-spring.xml" />
- <import resource="classpath*:ctx/spring/interceptors/adhesiones-interceptors-spring.xml" />
- <import resource="classpath*:ctx/spring/log4j/adhesiones-log4j-spring.xml" />
- <import resource="classpath*:ctx/spring/logging/adhesiones-logging-spring.xml" />
- <import resource="classpath*:ctx/spring/placeholders/adhesiones-placeholders-spring.xml" />
- <import resource="classpath*:ctx/spring/rest/adhesiones-rest-server-spring.xml" />
- <import resource="classpath*:ctx/spring/security/adhesiones-security-ldap-spring.xml" />
- <import resource="classpath*:ctx/spring/service/adhesiones-service-spring.xml" />
- <import resource="classpath*:ctx/spring/transaction/adhesiones-transaction-spring.xml" />
- <import resource="classpath*:ctx/spring/security/adhesiones-security-spring.xml" />
- </beans>
- <?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:context="http://www.springframework.org/schema/context"
- xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop"
- xmlns:jdbc="http://www.springframework.org/schema/jdbc" xmlns:util="http://www.springframework.org/schema/util"
- xmlns:cxf="http://cxf.apache.org/core"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
- http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
- http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
- http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
- http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
- <!-- Advice para transaccionalidad de servicios -->
- <tx:advice id="adhesiones.tx.advice" transaction-manager="adhesiones.transaction.manager">
- <tx:attributes>
- <tx:method name="get*" read-only="true" />
- <tx:method name="*"
- rollback-for="java.lang.RuntimeException, ar.com.redlink.framework.persistence.dao.exception.RedLinkPersistenceException" />
- </tx:attributes>
- </tx:advice>
- </beans>
- <?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:context="http://www.springframework.org/schema/context"
- xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop"
- xmlns:jdbc="http://www.springframework.org/schema/jdbc" xmlns:util="http://www.springframework.org/schema/util"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
- http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
- http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
- http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd">
- <bean id="adhesiones.movimiento.service" class="ar.com.redlink.individuos.servicios.adhesiones.service.impl.AdhesionesServiceImpl">
- </bean>
- <bean id="adhesiones.mail.service" class="ar.com.redlink.individuos.servicios.adhesiones.service.impl.EmailServiceImpl">
- </bean>
- </beans>
- <?xml version="1.0" encoding="UTF-8"?>
- <beans:beans xmlns="http://www.springframework.org/schema/security"
- xmlns:beans="http://www.springframework.org/schema/beans" xmlns:util="http://www.springframework.org/schema/util"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-4.1.xsd
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd">
- <global-method-security secured-annotations="enabled" />
- <!-- success handler -->
- <beans:bean id="adhesiones.security.authenticationSuccessHandler"
- class="ar.com.redlink.individuos.servicios.adhesiones.rs.security.AdhesionesAuthenticationSuccessHandler" />
- <!-- entry point -->
- <beans:bean id="adhesiones.security.authenticationEntryPoint"
- class="ar.com.redlink.individuos.servicios.adhesiones.rs.security.AdhesionesAuthenticationEntryPoint" />
- <!-- configuración para recursos segurizados (recursos a segurizar) -->
- <!-- <http pattern="/configuracion/**" authentication-manager-ref="redlink-enrolamiento.authentication.manager"
- entry-point-ref="enrolamiento.security.authenticationEntryPoint" create-session="stateless">
- <csrf disabled="true"/> <custom-filter after="FORM_LOGIN_FILTER" ref="enrolamiento.authenticationFilter"/>
- </http> -->
- <http pattern="/sarasa" authentication-manager-ref="adhesiones.authentication.manager"
- entry-point-ref="adhesiones.security.authenticationEntryPoint"
- create-session="stateless">
- <csrf disabled="true" />
- <custom-filter after="FORM_LOGIN_FILTER" ref="adhesiones.authenticationFilter" />
- </http>
- <!-- custom filter -->
- <beans:bean id="adhesiones.authenticationFilter"
- class="ar.com.redlink.individuos.servicios.adhesiones.rs.security.AdhesionesAuthenticationFilter">
- <beans:property name="authenticationManager"
- ref="adhesiones.authentication.manager" />
- <beans:property name="authenticationSuccessHandler"
- ref="adhesiones.security.authenticationSuccessHandler" />
- <!-- paths para exclusión (no requieren autenticación) -->
- <beans:property name="excludedPaths">
- <util:map>
- <beans:entry key="/swagger.yaml" value="GET" />
- <beans:entry key="/" value="GET" />
- <beans:entry key="/rest-api/api-docs" value="GET" />
- <!-- <beans:entry key="/adhesiones" value="GET" /> -->
- <!-- <beans:entry key="/enrolamiento/solicitud" value="POST"/> <beans:entry
- key="/enrolamiento/generacion" value="POST"/> <beans:entry key="/enrolamiento/activacion"
- value="POST"/> <beans:entry key="/enrolamiento/reenvio" value="POST"/> -->
- </util:map>
- </beans:property>
- </beans:bean>
- </beans:beans>
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:security="http://www.springframework.org/schema/security"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
- http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-4.1.xsd">
- <!-- Componentes necesarios para la autentication por LDAP, haciendo uso
- del servidor LDAP que provee Spring -->
- <bean id="adhesiones.security.context"
- class="ar.com.redlink.framework.security.context.RedLinkSecurityCryptoContextSource">
- <constructor-arg
- value="${adhesiones.security.group.provider.url}" />
- <property name="cryptoService" ref="adhesiones.crypto.service" />
- <property name="userDn"
- value="${adhesiones.security.ldap.userDn}" />
- <property name="password"
- value="${adhesiones.security.ldap.password}" />
- </bean>
- <bean id="adhesiones.ldap.configurator"
- class="ar.com.redlink.framework.security.configurator.impl.DefaultLdapAuthenticationProviderConfiguratorImpl">
- <property name="ldapGroupSearchBase"
- value="${adhesiones.security.group.search.base}" />
- <property name="ldapGroupSearchFilter"
- value="${adhesiones.security.group.search.filter}" />
- <property name="ldapGroupSearchSubTree"
- value="${adhesiones.security.group.search.subtree}" />
- <property name="ldapGroupRolePrefix"
- value="${adhesiones.security.group.role.prefix}" />
- <property name="ldapGroupConvertUpperCase"
- value="${adhesiones.security.group.convert.upper.case}" />
- <property name="ldapUserSearchBase"
- value="${adhesiones.security.user.search.base}" />
- <property name="ldapUserSearchFilter"
- value="${adhesiones.security.user.search.filter}" />
- <property name="providerUrl"
- value="${adhesiones.security.group.provider.url}" />
- <!-- Contexto de login -->
- <property name="contextSource" ref="adhesiones.security.context" />
- </bean>
- <bean id="adhesiones.ldap.creator"
- class="ar.com.redlink.framework.security.creator.impl.DefaultLdapAuthenticationProviderCreatorImpl">
- <property name="configurator" ref="adhesiones.ldap.configurator" />
- </bean>
- <bean id="adhesiones.ad.provider"
- class="ar.com.redlink.framework.security.factory.RedLinkAuthenticationProviderFactoryBean">
- <property name="securityProfile"
- value="${adhesiones.ad.security.profile|defaultldap}" />
- <property name="authenticationProviderCreator" ref="adhesiones.ldap.creator" />
- </bean>
- <security:authentication-manager alias="adhesiones.authentication.manager">
- <security:authentication-provider
- ref="adhesiones.ad.provider" />
- </security:authentication-manager>
- <bean id="adhesiones.authentication.manager.cached"
- class="ar.com.redlink.framework.security.manager.RedLinkCachedAuthenticationManager">
- <property name="authenticationManager" ref="adhesiones.authentication.manager" />
- </bean>
- </beans>
- <?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:jaxrs="http://cxf.apache.org/jaxrs"
- xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
- http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
- http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd">
- <import resource="classpath:META-INF/cxf/cxf.xml" />
- <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
- <!-- config swagger cxf -->
- <!-- <bean id="adhesiones.swagger-feature" class="org.apache.cxf.jaxrs.swagger.Swagger2Feature"> -->
- <!-- path para buscar recursos rest -->
- <!-- <property name="resourcePackage" -->
- <!-- value="ar.com.redlink.individuos.servicios.adhesiones.rs.service" /> -->
- <!-- <property name="title" value="${swagger.title|Consola de Adhesiones}"
- /> -->
- <!-- <property name="version" value="${swagger.version|1.0-SNAPSHOT}" /> -->
- <!-- <property name="basePath" value="${swagger.basePath|/adhesiones}" /> -->
- <!-- <property name="host" value="${swagger.host|TBD}" /> -->
- <!-- </bean> -->
- <!-- Filter para logging de requests y responses HTTP -->
- <bean id="rest.message.logging.filter"
- class="ar.com.redlink.individuos.servicios.adhesiones.logging.services.filter.RestMessageLoggingFilter">
- <property name="authorizationHeader" value="Authorization" />
- <!-- http headers a ofuscar en el request -->
- <property name="requestBlankHeaders"
- value="${rest.message.request.header.blank.elements|authorization}" />
- <!-- elemento a ofuscar en el body del request -->
- <property name="requestBlankBodyElements"
- value="${rest.message.request.body.blank.elements|clave,password}" />
- <!-- http headers a ofuscar en el response -->
- <property name="responseBlankHeaders"
- value="${rest.message.response.header.blank.elements|authorization}" />
- <!-- elemento a ofuscar en el body del response -->
- <property name="responseBlankBodyElements"
- value="${rest.message.response.body.blank.elements|clave,password}" />
- </bean>
- <!-- Endpoint de servicio REST -->
- <!-- <jaxrs:server id="adhesiones.rest.server" address="/"> -->
- <!-- <jaxrs:serviceBeans> -->
- <!-- <ref bean="adhesiones.rest.service" /> -->
- <!-- </jaxrs:serviceBeans> -->
- <!-- <jaxrs:extensionMappings> -->
- <!-- <entry key="json" value="application/json" /> -->
- <!-- </jaxrs:extensionMappings> -->
- <!-- <jaxrs:providers> -->
- <!-- <ref bean="redlink.framework.jaxrs.json.provider" /> -->
- <!-- <ref bean="rest.message.logging.filter" /> -->
- <!-- </jaxrs:providers> -->
- <!-- <jaxrs:features> -->
- <!-- <ref bean="adhesiones.swagger-feature" /> -->
- <!-- <ref bean="redlink.framework.jaxrs.swagger2.feature" /> -->
- <!-- </jaxrs:features> -->
- <!-- </jaxrs:server> -->
- <jaxrs:server id="adhesiones.rest.server" address="${adhesiones.rest.server.address}">
- <jaxrs:serviceBeans>
- <ref bean="adhesiones.rest.service" />
- <ref bean="email.rest.service" />
- </jaxrs:serviceBeans>
- <jaxrs:providers>
- <ref bean="redlink.framework.jaxrs.json.provider" />
- </jaxrs:providers>
- <jaxrs:features>
- <ref bean="redlink.framework.jaxrs.swagger2.feature" />
- </jaxrs:features>
- </jaxrs:server>
- <!-- Implementacion de servicio REST -->
- <bean id="adhesiones.rest.service"
- class="ar.com.redlink.individuos.servicios.adhesiones.rs.service.impl.AdhesionesRSImpl">
- </bean>
- <!-- Implementacion de servicio REST de Email -->
- <bean id="email.rest.service"
- class="ar.com.redlink.individuos.servicios.adhesiones.rs.service.impl.EmailRSImpl">
- <property name="emailService" ref="rsEmailService.service" />
- </bean>
- <bean id="rsEmailService.service"
- class="ar.com.redlink.individuos.servicios.adhesiones.service.impl.EmailServiceImpl">
- <property name="daoEmail" ref="adhesiones.mail.dao"></property>
- </bean>
- <!-- Fin imple REST Email -->
- </beans>
- <?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:context="http://www.springframework.org/schema/context"
- xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:aop="http://www.springframework.org/schema/aop"
- xmlns:jdbc="http://www.springframework.org/schema/jdbc"
- xmlns:util="http://www.springframework.org/schema/util"
- xmlns:cxf="http://cxf.apache.org/core"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
- http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
- http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
- http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
- http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
- <import
- resource="classpath*:ctx/spring/redlink-framework-logging-client-spring-extension.xml" />
- <bean id="adhesiones.log.element.factory"
- class="ar.com.redlink.individuos.servicios.adhesiones.logging.services.impl.RedLinkLogElementFactoryImpl">
- <property name="serverId" value="${server.id}" />
- </bean>
- <bean id="adhesiones.logging.context.provider"
- class="ar.com.redlink.individuos.servicios.adhesiones.logging.services.impl.LoggingContextProviderImpl" />
- <bean id="adhesiones.log.element.factory.resolver"
- class="ar.com.redlink.framework.logging.client.factory.resolver.impl.RedLinkLogElementFactoryResolverImpl">
- <property name="classNameMethodNameMap">
- <map>
- <entry
- key="ar.com.redlink.framework.rest.common.crud.RedLinkGenericRESTService">
- <map>
- <entry key="getAll" value-ref="adhesiones.log.element.factory" />
- <entry key="delete" value-ref="adhesiones.log.element.factory" />
- <entry key="getById" value-ref="adhesiones.log.element.factory" />
- <entry key="save" value-ref="adhesiones.log.element.factory" />
- <entry key="update" value-ref="adhesiones.log.element.factory" />
- </map>
- </entry>
- <entry key="ar.com.redlink.individuos.servicios.adhesiones.rs.service.MovimientoRESTService">
- <map>
- <entry key="getAll" value-ref="adhesiones.log.element.factory" />
- </map>
- </entry>
- </map>
- </property>
- </bean>
- </beans>
- <?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:context="http://www.springframework.org/schema/context"
- xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:aop="http://www.springframework.org/schema/aop"
- xmlns:jdbc="http://www.springframework.org/schema/jdbc"
- xmlns:util="http://www.springframework.org/schema/util"
- xmlns:cxf="http://cxf.apache.org/core"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
- http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
- http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
- http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
- http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
- <bean id = "adhesiones.log4j.configurer" class = "org.springframework.beans.factory.config.MethodInvokingFactoryBean" >
- <property name="targetClass"><value>org.springframework.util.Log4jConfigurer</value></property>
- <property name="targetMethod"><value>initLogging</value></property>
- <property name="arguments">
- <list>
- <value>${adhesiones.log4j.home}</value>
- <value>${adhesiones.log4j.timeReload}</value>
- </list>
- </property>
- </bean>
- </beans>
- <?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:context="http://www.springframework.org/schema/context"
- xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:aop="http://www.springframework.org/schema/aop"
- xmlns:jdbc="http://www.springframework.org/schema/jdbc"
- xmlns:util="http://www.springframework.org/schema/util"
- xmlns:cxf="http://cxf.apache.org/core"
- xmlns:jaxws="http://cxf.apache.org/jaxws"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
- http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
- http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
- http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
- http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
- http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
- <bean id="adhesiones.logging.activity.interceptor"
- class="ar.com.redlink.framework.logging.client.interceptor.LoggingInterceptor">
- <property name="factoryResolver" ref="adhesiones.log.element.factory.resolver" />
- <property name="loggingContextProvider" ref="adhesiones.logging.context.provider" />
- <property name="loggingService" ref="redlink.framework.logging.client.service" />
- </bean>
- <bean id="adhesiones.interceptor.proxy.creator"
- class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
- <property name="beanNames">
- <list>
- <value>adhesiones.movimiento.rest.service</value>
- <!-- <value>adhesiones.rest.service</value> -->
- </list>
- </property>
- <property name="interceptorNames">
- <list>
- <value>adhesiones.logging.activity.interceptor</value>
- </list>
- </property>
- </bean>
- </beans>
- <?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:context="http://www.springframework.org/schema/context"
- xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop"
- xmlns:jdbc="http://www.springframework.org/schema/jdbc" xmlns:util="http://www.springframework.org/schema/util"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
- http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
- http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
- http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd">
- <!-- Beans para configuracion de Hibernate -->
- <bean id="adhesiones.session.factory"
- class="org.springframework.orm.hibernate5.LocalSessionFactoryBean">
- <property name="dataSource" ref="adhesiones.datasource" />
- <property name="hibernateProperties" ref="adhesiones.hibernate.properties" />
- <property name="mappingLocations">
- <list>
- <value>classpath:/ctx/hibernate/Email.hbm.xml</value>
- <!-- <value>classpath:/ctx/hibernate/movimiento.hbm.xml</value>
- <value>classpath:/ctx/hibernate/cliente.hbm.xml</value> -->
- </list>
- </property>
- </bean>
- <bean id="adhesiones.hibernate.properties"
- class="org.springframework.beans.factory.config.PropertiesFactoryBean">
- <property name="properties">
- <props>
- <prop key="hibernate.show_sql">${adhesiones.hibernate.show.sql|true}</prop>
- <prop key="hibernate.hbm2ddl.auto">${adhesiones.hibernate.hbm2ddl.auto|none}</prop>
- <prop key="hibernate.dialect">${adhesiones.hibernate.dialect|org.hibernate.dialect.Oracle10gDialect}</prop>
- <prop key="hibernate.cache.use_second_level_cache">${adhesiones.hibernate.cache.use.second.level.cache|false}</prop>
- <prop key="hibernate.cache.use_query_cache">${adhesiones.hibernate.cache.use.query.cache|false}</prop>
- <prop key="hibernate.format_sql">${adhesiones.hibernate.format.sql|false}</prop>
- <prop key="hibernate.cache.provider_configuration_file_resource_path">/ctx/cache/adhesiones-ehcache.xml</prop>
- <prop key="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</prop>
- <prop key="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory</prop>
- <prop key="hibernate.current_session_context_class">org.springframework.orm.hibernate5.SpringSessionContext</prop>
- <prop key="hibernate.jdbc.use_get_generated_keys">true</prop>
- <prop key="hibernate.default_schema">USR_REFRESH</prop>
- </props>
- </property>
- </bean>
- <bean id="adhesiones.hibernate.template" class="org.springframework.orm.hibernate5.HibernateTemplate">
- <property name="sessionFactory" ref="adhesiones.session.factory" />
- </bean>
- <bean id="adhesiones.transaction.manager"
- class="org.springframework.orm.hibernate5.HibernateTransactionManager">
- <property name="sessionFactory" ref="adhesiones.session.factory" />
- </bean>
- <!-- TODO -->
- <!-- config aop para especificar el funcionamiento del transaction manager -->
- <!-- advice -->
- <!-- <tx:advice id="txAdvice" transaction-manager="enrolamiento.transaction.manager">
- the transactional semantics...
- <tx:attributes>
- all methods starting with 'get' are read-only
- <tx:method name="get*" read-only="true"/>
- other methods use the default transaction settings (see below)
- <tx:method name="*"
- rollback-for=
- "java.lang.Exception,
- ar.com.redlink.hb.services.redlink.enrolamiento.exception.EnrolamientoError,
- ar.com.redlink.framework.persistence.dao.exception.RedLinkPersistenceException,
- org.hibernate.JDBCException,
- org.hibernate.HibernateException,
- java.lang.RuntimeException
- "/>
- </tx:attributes>
- </tx:advice>
- <aop:config>
- pointcuts
- <aop:pointcut expression="execution(* ar.com.redlink.hb.services.redlink.enrolamiento.service.impl.EnrolamientoServiceImpl+.*(..))" id="enrolamiento.dao.pointcut"/>
- <aop:pointcut expression="execution(* ar.com.redlink.framework.persistence.dao.crud.RedLinkGenericDAO+.*(..))" id="generic.dao.pointcut"/>
- advisors
- <aop:advisor pointcut-ref="enrolamiento.dao.pointcut" advice-ref="txAdvice"/>
- <aop:advisor pointcut-ref="generic.dao.pointcut" advice-ref="txAdvice"/>
- </aop:config> -->
- </beans>
- <?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:context="http://www.springframework.org/schema/context"
- xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:aop="http://www.springframework.org/schema/aop"
- xmlns:jdbc="http://www.springframework.org/schema/jdbc"
- xmlns:util="http://www.springframework.org/schema/util"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
- http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
- http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
- http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd">
- <bean id="adhesiones.datasource" class="org.springframework.jndi.JndiObjectFactoryBean">
- <property name="jndiName"><value>${adhesiones.datasource.jndi.name}</value></property>
- </bean>
- </beans>
- <?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:context="http://www.springframework.org/schema/context"
- xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:aop="http://www.springframework.org/schema/aop"
- xmlns:jdbc="http://www.springframework.org/schema/jdbc"
- xmlns:util="http://www.springframework.org/schema/util"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
- http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
- http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
- http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd">
- <bean id="adhesiones.datasource" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
- <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
- <property name="url" value="jdbc:oracle:thin:@clusterdesaweb-scan:1521/lnkdhb.redlink.com.ar"/>
- <property name="username" value=""/>
- <property name="password" value=""/>
- <property name="maxTotal" value="200"/>
- <property name="maxIdle" value="200"/>
- <property name="minIdle" value="10"/>
- <property name="maxWaitMillis" value="60000"/>
- <property name="removeAbandonedOnMaintenance" value="true"/>
- <property name="removeAbandonedOnBorrow" value="true"/>
- </bean>
- </beans>
- <?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:context="http://www.springframework.org/schema/context"
- xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:aop="http://www.springframework.org/schema/aop"
- xmlns:jdbc="http://www.springframework.org/schema/jdbc"
- xmlns:util="http://www.springframework.org/schema/util"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
- http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
- http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
- http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd">
- <!-- DAO para Movimiento -->
- <!-- <bean id="adhesiones.movimiento.dao" class="ar.com.redlink.individuos.servicios.adhesiones.dao.impl.MovimientoDAOImpl">
- <property name="className" value="ar.com.redlink.individuos.servicios.adhesiones.entity.Movimiento"/>
- <property name="hibernateTemplate" ref="adhesiones.hibernate.template" />
- </bean> -->
- <!-- DAO para Email -->
- <bean id="adhesiones.mail.dao" class="ar.com.redlink.individuos.servicios.adhesiones.dao.impl.EmailDAOImpl">
- <property name="className" value="ar.com.redlink.individuos.servicios.adhesiones.entity.Email"/>
- <property name="hibernateTemplate" ref="adhesiones.hibernate.template" />
- </bean>
- </beans>
- <?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:context="http://www.springframework.org/schema/context"
- xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:aop="http://www.springframework.org/schema/aop"
- xmlns:jdbc="http://www.springframework.org/schema/jdbc"
- xmlns:util="http://www.springframework.org/schema/util"
- xmlns:cxf="http://cxf.apache.org/core"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
- http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
- http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
- http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
- http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
- <import resource="classpath:ctx/spring/redlink-framework-core-spring-extension.xml"/>
- <import resource="classpath:ctx/spring/redlink-framework-cache-spring-extension.xml"/>
- <!-- Administrador de Cache -->
- <bean id="adhesiones.cache.manager" class="ar.com.redlink.framework.cache.factory.RedLinkCacheManagerFactoryBean">
- <property name="configLocation">
- <value>classpath:/ctx/cache/adhesiones-ehcache.xml</value>
- </property>
- </bean>
- <!-- Metodos a ser cacheados -->
- <bean id="adhesiones.method.cache" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
- <property name="cacheName" value="DEFAULT_CACHE" />
- <property name="cacheManager" ref="adhesiones.cache.manager" />
- </bean>
- <bean id="adhesiones.authentication.cache" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
- <property name="cacheName" value="AUTHENTICATION_CACHE" />
- <property name="cacheManager" ref="adhesiones.cache.manager" />
- <property name="timeToIdle" value="${adhesiones.security.cache.timeToIdleSeconds}" />
- <property name="timeToLive" value="${adhesiones.security.cache.timeToLiveSeconds}" />
- </bean>
- <!-- Definicion del interceptor -->
- <bean id="adhesiones.method.cache.interceptor" class="ar.com.redlink.framework.cache.interceptor.MethodCacheInterceptor">
- <property name="activeCachePropertyName" value="adhesiones.cache.active"/>
- <property name="internalCache">
- <map>
- <entry key="DEFAULT_CACHE" value-ref="adhesiones.method.cache" />
- <entry key="AUTHENTICATION_CACHE" value-ref="adhesiones.authentication.cache" />
- </map>
- </property>
- <property name="propertiesConfiguration" ref="adhesiones.general.configuration" />
- </bean>
- <bean id="adhesiones.cache.interceptor.proxy.creator" class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
- <property name="beanNames">
- <list>
- <value>adhesiones.authentication.manager.cached</value>
- </list>
- </property>
- <property name="interceptorNames">
- <list>
- <value>adhesiones.method.cache.interceptor</value>
- </list>
- </property>
- </bean>
- </beans>
- <?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:context="http://www.springframework.org/schema/context"
- xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:aop="http://www.springframework.org/schema/aop"
- xmlns:jdbc="http://www.springframework.org/schema/jdbc"
- xmlns:util="http://www.springframework.org/schema/util"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
- http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
- http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
- http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd">
- <!-- Aspecto para transaccionalidad de servicios -->
- <aop:config proxy-target-class="false">
- <aop:pointcut id="adhesiones.tx.pointcut"
- expression="execution(* ar.com.redlink.framework.services.RedLinkService+.*(..))" />
- <aop:advisor advice-ref="adhesiones.tx.advice"
- pointcut-ref="adhesiones.tx.pointcut" />
- </aop:config>
- </beans>
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE ehcache>
- <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd"
- updateCheck="false">
- <diskStore path="java.io.tmpdir" />
- <defaultCache maxElementsInMemory="10"
- eternal="false"
- timeToIdleSeconds="120"
- timeToLiveSeconds="120"
- overflowToDisk="true" />
- <cache name="DEFAULT_CACHE"
- maxElementsInMemory="50"
- eternal="false"
- timeToIdleSeconds="600"
- timeToLiveSeconds="600"
- overflowToDisk="true" />
- <cache name="AUTHENTICATION_CACHE"
- maxElementsInMemory="50"
- eternal="false"
- timeToIdleSeconds="600"
- timeToLiveSeconds="600"
- overflowToDisk="false"/>
- </ehcache>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement