Advertisement
Guest User

Untitled

a guest
Jan 25th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.27 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans
  3. xmlns="http://www.springframework.org/schema/beans"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. xmlns:context="http://www.springframework.org/schema/context"
  6. xmlns:tx="http://www.springframework.org/schema/tx"
  7. xmlns:aop="http://www.springframework.org/schema/aop"
  8. xmlns:jdbc="http://www.springframework.org/schema/jdbc"
  9. xmlns:util="http://www.springframework.org/schema/util"
  10. xmlns:cxf="http://cxf.apache.org/core"
  11. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
  12. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
  13. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
  14. http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
  15. http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
  16. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
  17. http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
  18.  
  19. <util:list id="redlink.framework.properties">
  20. <value>classpath:/properties/redlink-framework.properties</value>
  21. <value>classpath:/properties/adhesiones-datasource.properties</value>
  22. <value>classpath:/properties/adhesiones-general.properties</value>
  23. <value>classpath:/properties/adhesiones-ldap.properties</value>
  24. <value>classpath:/properties/adhesiones-logging.properties</value>
  25. <value>classpath:/properties/adhesiones-hibernate.properties</value>
  26. <value>classpath:/properties/adhesiones-rest.properties</value>
  27. <value>classpath:/properties/secure/adhesiones-crypto.properties</value>
  28. <value>classpath:/properties/secure/adhesiones-users.properties</value>
  29. </util:list>
  30.  
  31. <bean id="adhesiones.general.configuration" class="org.apache.commons.configuration.PropertiesConfiguration">
  32. <constructor-arg type="java.net.URL" >
  33. <value>classpath:/properties/adhesiones-recargable.properties</value>
  34. </constructor-arg>
  35. <property name="reloadingStrategy" ref="adhesiones.reloading.strategy.general.configuration" />
  36. </bean>
  37.  
  38. <bean id="adhesiones.reloading.strategy.general.configuration" class="org.apache.commons.configuration.reloading.FileChangedReloadingStrategy">
  39. <property name="refreshDelay" value="${cfg.refreshdelay}" />
  40. </bean>
  41.  
  42. </beans>
  43.  
  44.  
  45.  
  46. <?xml version="1.0" encoding="UTF-8"?>
  47. <beans
  48. xmlns="http://www.springframework.org/schema/beans"
  49. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  50. xmlns:context="http://www.springframework.org/schema/context"
  51. xmlns:tx="http://www.springframework.org/schema/tx"
  52. xmlns:aop="http://www.springframework.org/schema/aop"
  53. xmlns:jdbc="http://www.springframework.org/schema/jdbc"
  54. xmlns:util="http://www.springframework.org/schema/util"
  55. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
  56. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
  57. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
  58. http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
  59. http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
  60. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd">
  61.  
  62. <!-- Archivos de contexto de Spring propios del framework -->
  63. <import resource="classpath*:ctx/spring/redlink-framework-main-spring.xml"/>
  64.  
  65. <!-- Archivos de contexto de Spring propios de la aplicacion -->
  66. <import resource="classpath*:ctx/spring/aop/adhesiones-aop-spring.xml"/>
  67. <import resource="classpath*:ctx/spring/cache/adhesiones-cache-spring.xml" />
  68. <import resource="classpath*:ctx/spring/crypto/adhesiones-crypto-spring.xml" />
  69. <import resource="classpath*:ctx/spring/dao/adhesiones-dao-spring.xml" />
  70. <import resource="classpath*:ctx/spring/datasource/tomcat/adhesiones-datasource-spring.xml" />
  71. <!-- <import resource="classpath*:ctx/spring/datasource/weblogic/adhesiones-datasource-spring.xml" /> -->
  72. <import resource="classpath*:ctx/spring/hibernate/adhesiones-hibernate-spring.xml" />
  73. <import resource="classpath*:ctx/spring/interceptors/adhesiones-interceptors-spring.xml" />
  74. <import resource="classpath*:ctx/spring/log4j/adhesiones-log4j-spring.xml" />
  75. <import resource="classpath*:ctx/spring/logging/adhesiones-logging-spring.xml" />
  76. <import resource="classpath*:ctx/spring/placeholders/adhesiones-placeholders-spring.xml" />
  77. <import resource="classpath*:ctx/spring/rest/adhesiones-rest-server-spring.xml" />
  78. <import resource="classpath*:ctx/spring/security/adhesiones-security-ldap-spring.xml" />
  79. <import resource="classpath*:ctx/spring/service/adhesiones-service-spring.xml" />
  80. <import resource="classpath*:ctx/spring/transaction/adhesiones-transaction-spring.xml" />
  81. <import resource="classpath*:ctx/spring/security/adhesiones-security-spring.xml" />
  82.  
  83. </beans>
  84.  
  85.  
  86.  
  87. <?xml version="1.0" encoding="UTF-8"?>
  88. <beans xmlns="http://www.springframework.org/schema/beans"
  89. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
  90. xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop"
  91. xmlns:jdbc="http://www.springframework.org/schema/jdbc" xmlns:util="http://www.springframework.org/schema/util"
  92. xmlns:cxf="http://cxf.apache.org/core"
  93. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
  94. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
  95. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
  96. http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
  97. http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
  98. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
  99. http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
  100.  
  101. <!-- Advice para transaccionalidad de servicios -->
  102. <tx:advice id="adhesiones.tx.advice" transaction-manager="adhesiones.transaction.manager">
  103. <tx:attributes>
  104. <tx:method name="get*" read-only="true" />
  105. <tx:method name="*"
  106. rollback-for="java.lang.RuntimeException, ar.com.redlink.framework.persistence.dao.exception.RedLinkPersistenceException" />
  107. </tx:attributes>
  108. </tx:advice>
  109.  
  110. </beans>
  111.  
  112.  
  113.  
  114. <?xml version="1.0" encoding="UTF-8"?>
  115. <beans xmlns="http://www.springframework.org/schema/beans"
  116. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
  117. xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop"
  118. xmlns:jdbc="http://www.springframework.org/schema/jdbc" xmlns:util="http://www.springframework.org/schema/util"
  119. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
  120. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
  121. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
  122. http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
  123. http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
  124. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd">
  125.  
  126. <bean id="adhesiones.movimiento.service" class="ar.com.redlink.individuos.servicios.adhesiones.service.impl.AdhesionesServiceImpl">
  127.  
  128. </bean>
  129.  
  130. <bean id="adhesiones.mail.service" class="ar.com.redlink.individuos.servicios.adhesiones.service.impl.EmailServiceImpl">
  131. </bean>
  132. </beans>
  133.  
  134.  
  135.  
  136. <?xml version="1.0" encoding="UTF-8"?>
  137. <beans:beans xmlns="http://www.springframework.org/schema/security"
  138. xmlns:beans="http://www.springframework.org/schema/beans" xmlns:util="http://www.springframework.org/schema/util"
  139. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  140. xsi:schemaLocation="http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-4.1.xsd
  141. http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
  142. http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd">
  143.  
  144. <global-method-security secured-annotations="enabled" />
  145.  
  146. <!-- success handler -->
  147. <beans:bean id="adhesiones.security.authenticationSuccessHandler"
  148. class="ar.com.redlink.individuos.servicios.adhesiones.rs.security.AdhesionesAuthenticationSuccessHandler" />
  149.  
  150. <!-- entry point -->
  151. <beans:bean id="adhesiones.security.authenticationEntryPoint"
  152. class="ar.com.redlink.individuos.servicios.adhesiones.rs.security.AdhesionesAuthenticationEntryPoint" />
  153.  
  154. <!-- configuración para recursos segurizados (recursos a segurizar) -->
  155. <!-- <http pattern="/configuracion/**" authentication-manager-ref="redlink-enrolamiento.authentication.manager"
  156. entry-point-ref="enrolamiento.security.authenticationEntryPoint" create-session="stateless">
  157. <csrf disabled="true"/> <custom-filter after="FORM_LOGIN_FILTER" ref="enrolamiento.authenticationFilter"/>
  158. </http> -->
  159.  
  160. <http pattern="/sarasa" authentication-manager-ref="adhesiones.authentication.manager"
  161. entry-point-ref="adhesiones.security.authenticationEntryPoint"
  162. create-session="stateless">
  163. <csrf disabled="true" />
  164. <custom-filter after="FORM_LOGIN_FILTER" ref="adhesiones.authenticationFilter" />
  165. </http>
  166.  
  167. <!-- custom filter -->
  168. <beans:bean id="adhesiones.authenticationFilter"
  169. class="ar.com.redlink.individuos.servicios.adhesiones.rs.security.AdhesionesAuthenticationFilter">
  170. <beans:property name="authenticationManager"
  171. ref="adhesiones.authentication.manager" />
  172. <beans:property name="authenticationSuccessHandler"
  173. ref="adhesiones.security.authenticationSuccessHandler" />
  174. <!-- paths para exclusión (no requieren autenticación) -->
  175. <beans:property name="excludedPaths">
  176. <util:map>
  177. <beans:entry key="/swagger.yaml" value="GET" />
  178. <beans:entry key="/" value="GET" />
  179. <beans:entry key="/rest-api/api-docs" value="GET" />
  180. <!-- <beans:entry key="/adhesiones" value="GET" /> -->
  181. <!-- <beans:entry key="/enrolamiento/solicitud" value="POST"/> <beans:entry
  182. key="/enrolamiento/generacion" value="POST"/> <beans:entry key="/enrolamiento/activacion"
  183. value="POST"/> <beans:entry key="/enrolamiento/reenvio" value="POST"/> -->
  184. </util:map>
  185. </beans:property>
  186. </beans:bean>
  187. </beans:beans>
  188.  
  189.  
  190.  
  191. <?xml version="1.0" encoding="UTF-8"?>
  192. <beans xmlns="http://www.springframework.org/schema/beans"
  193. xmlns:security="http://www.springframework.org/schema/security"
  194. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  195. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
  196. http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-4.1.xsd">
  197.  
  198. <!-- Componentes necesarios para la autentication por LDAP, haciendo uso
  199. del servidor LDAP que provee Spring -->
  200.  
  201. <bean id="adhesiones.security.context"
  202. class="ar.com.redlink.framework.security.context.RedLinkSecurityCryptoContextSource">
  203. <constructor-arg
  204. value="${adhesiones.security.group.provider.url}" />
  205. <property name="cryptoService" ref="adhesiones.crypto.service" />
  206. <property name="userDn"
  207. value="${adhesiones.security.ldap.userDn}" />
  208. <property name="password"
  209. value="${adhesiones.security.ldap.password}" />
  210. </bean>
  211.  
  212. <bean id="adhesiones.ldap.configurator"
  213. class="ar.com.redlink.framework.security.configurator.impl.DefaultLdapAuthenticationProviderConfiguratorImpl">
  214. <property name="ldapGroupSearchBase"
  215. value="${adhesiones.security.group.search.base}" />
  216. <property name="ldapGroupSearchFilter"
  217. value="${adhesiones.security.group.search.filter}" />
  218. <property name="ldapGroupSearchSubTree"
  219. value="${adhesiones.security.group.search.subtree}" />
  220. <property name="ldapGroupRolePrefix"
  221. value="${adhesiones.security.group.role.prefix}" />
  222. <property name="ldapGroupConvertUpperCase"
  223. value="${adhesiones.security.group.convert.upper.case}" />
  224. <property name="ldapUserSearchBase"
  225. value="${adhesiones.security.user.search.base}" />
  226. <property name="ldapUserSearchFilter"
  227. value="${adhesiones.security.user.search.filter}" />
  228. <property name="providerUrl"
  229. value="${adhesiones.security.group.provider.url}" />
  230. <!-- Contexto de login -->
  231. <property name="contextSource" ref="adhesiones.security.context" />
  232.  
  233. </bean>
  234.  
  235. <bean id="adhesiones.ldap.creator"
  236. class="ar.com.redlink.framework.security.creator.impl.DefaultLdapAuthenticationProviderCreatorImpl">
  237. <property name="configurator" ref="adhesiones.ldap.configurator" />
  238. </bean>
  239.  
  240. <bean id="adhesiones.ad.provider"
  241. class="ar.com.redlink.framework.security.factory.RedLinkAuthenticationProviderFactoryBean">
  242. <property name="securityProfile"
  243. value="${adhesiones.ad.security.profile|defaultldap}" />
  244. <property name="authenticationProviderCreator" ref="adhesiones.ldap.creator" />
  245. </bean>
  246.  
  247. <security:authentication-manager alias="adhesiones.authentication.manager">
  248. <security:authentication-provider
  249. ref="adhesiones.ad.provider" />
  250. </security:authentication-manager>
  251.  
  252. <bean id="adhesiones.authentication.manager.cached"
  253. class="ar.com.redlink.framework.security.manager.RedLinkCachedAuthenticationManager">
  254. <property name="authenticationManager" ref="adhesiones.authentication.manager" />
  255. </bean>
  256.  
  257. </beans>
  258.  
  259.  
  260. <?xml version="1.0" encoding="UTF-8"?>
  261. <beans xmlns="http://www.springframework.org/schema/beans"
  262. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxrs="http://cxf.apache.org/jaxrs"
  263. xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop"
  264. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  265. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
  266. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
  267. http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd">
  268.  
  269. <import resource="classpath:META-INF/cxf/cxf.xml" />
  270. <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
  271.  
  272. <!-- config swagger cxf -->
  273. <!-- <bean id="adhesiones.swagger-feature" class="org.apache.cxf.jaxrs.swagger.Swagger2Feature"> -->
  274. <!-- path para buscar recursos rest -->
  275. <!-- <property name="resourcePackage" -->
  276. <!-- value="ar.com.redlink.individuos.servicios.adhesiones.rs.service" /> -->
  277. <!-- <property name="title" value="${swagger.title|Consola de Adhesiones}"
  278. /> -->
  279. <!-- <property name="version" value="${swagger.version|1.0-SNAPSHOT}" /> -->
  280. <!-- <property name="basePath" value="${swagger.basePath|/adhesiones}" /> -->
  281. <!-- <property name="host" value="${swagger.host|TBD}" /> -->
  282. <!-- </bean> -->
  283.  
  284. <!-- Filter para logging de requests y responses HTTP -->
  285. <bean id="rest.message.logging.filter"
  286. class="ar.com.redlink.individuos.servicios.adhesiones.logging.services.filter.RestMessageLoggingFilter">
  287. <property name="authorizationHeader" value="Authorization" />
  288. <!-- http headers a ofuscar en el request -->
  289. <property name="requestBlankHeaders"
  290. value="${rest.message.request.header.blank.elements|authorization}" />
  291. <!-- elemento a ofuscar en el body del request -->
  292. <property name="requestBlankBodyElements"
  293. value="${rest.message.request.body.blank.elements|clave,password}" />
  294. <!-- http headers a ofuscar en el response -->
  295. <property name="responseBlankHeaders"
  296. value="${rest.message.response.header.blank.elements|authorization}" />
  297. <!-- elemento a ofuscar en el body del response -->
  298. <property name="responseBlankBodyElements"
  299. value="${rest.message.response.body.blank.elements|clave,password}" />
  300. </bean>
  301.  
  302. <!-- Endpoint de servicio REST -->
  303. <!-- <jaxrs:server id="adhesiones.rest.server" address="/"> -->
  304. <!-- <jaxrs:serviceBeans> -->
  305. <!-- <ref bean="adhesiones.rest.service" /> -->
  306. <!-- </jaxrs:serviceBeans> -->
  307. <!-- <jaxrs:extensionMappings> -->
  308. <!-- <entry key="json" value="application/json" /> -->
  309. <!-- </jaxrs:extensionMappings> -->
  310. <!-- <jaxrs:providers> -->
  311. <!-- <ref bean="redlink.framework.jaxrs.json.provider" /> -->
  312. <!-- <ref bean="rest.message.logging.filter" /> -->
  313. <!-- </jaxrs:providers> -->
  314. <!-- <jaxrs:features> -->
  315. <!-- <ref bean="adhesiones.swagger-feature" /> -->
  316. <!-- <ref bean="redlink.framework.jaxrs.swagger2.feature" /> -->
  317. <!-- </jaxrs:features> -->
  318. <!-- </jaxrs:server> -->
  319.  
  320.  
  321. <jaxrs:server id="adhesiones.rest.server" address="${adhesiones.rest.server.address}">
  322. <jaxrs:serviceBeans>
  323. <ref bean="adhesiones.rest.service" />
  324. <ref bean="email.rest.service" />
  325. </jaxrs:serviceBeans>
  326. <jaxrs:providers>
  327. <ref bean="redlink.framework.jaxrs.json.provider" />
  328. </jaxrs:providers>
  329. <jaxrs:features>
  330. <ref bean="redlink.framework.jaxrs.swagger2.feature" />
  331. </jaxrs:features>
  332. </jaxrs:server>
  333.  
  334. <!-- Implementacion de servicio REST -->
  335. <bean id="adhesiones.rest.service"
  336. class="ar.com.redlink.individuos.servicios.adhesiones.rs.service.impl.AdhesionesRSImpl">
  337. </bean>
  338.  
  339.  
  340. <!-- Implementacion de servicio REST de Email -->
  341. <bean id="email.rest.service"
  342. class="ar.com.redlink.individuos.servicios.adhesiones.rs.service.impl.EmailRSImpl">
  343. <property name="emailService" ref="rsEmailService.service" />
  344. </bean>
  345.  
  346. <bean id="rsEmailService.service"
  347. class="ar.com.redlink.individuos.servicios.adhesiones.service.impl.EmailServiceImpl">
  348. <property name="daoEmail" ref="adhesiones.mail.dao"></property>
  349. </bean>
  350. <!-- Fin imple REST Email -->
  351.  
  352. </beans>
  353.  
  354.  
  355.  
  356. <?xml version="1.0" encoding="UTF-8"?>
  357. <beans
  358. xmlns="http://www.springframework.org/schema/beans"
  359. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  360. xmlns:context="http://www.springframework.org/schema/context"
  361. xmlns:tx="http://www.springframework.org/schema/tx"
  362. xmlns:aop="http://www.springframework.org/schema/aop"
  363. xmlns:jdbc="http://www.springframework.org/schema/jdbc"
  364. xmlns:util="http://www.springframework.org/schema/util"
  365. xmlns:cxf="http://cxf.apache.org/core"
  366. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
  367. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
  368. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
  369. http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
  370. http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
  371. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
  372. http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
  373.  
  374. <import
  375. resource="classpath*:ctx/spring/redlink-framework-logging-client-spring-extension.xml" />
  376.  
  377. <bean id="adhesiones.log.element.factory"
  378. class="ar.com.redlink.individuos.servicios.adhesiones.logging.services.impl.RedLinkLogElementFactoryImpl">
  379. <property name="serverId" value="${server.id}" />
  380. </bean>
  381.  
  382. <bean id="adhesiones.logging.context.provider"
  383. class="ar.com.redlink.individuos.servicios.adhesiones.logging.services.impl.LoggingContextProviderImpl" />
  384.  
  385. <bean id="adhesiones.log.element.factory.resolver"
  386. class="ar.com.redlink.framework.logging.client.factory.resolver.impl.RedLinkLogElementFactoryResolverImpl">
  387. <property name="classNameMethodNameMap">
  388. <map>
  389. <entry
  390. key="ar.com.redlink.framework.rest.common.crud.RedLinkGenericRESTService">
  391. <map>
  392. <entry key="getAll" value-ref="adhesiones.log.element.factory" />
  393. <entry key="delete" value-ref="adhesiones.log.element.factory" />
  394. <entry key="getById" value-ref="adhesiones.log.element.factory" />
  395. <entry key="save" value-ref="adhesiones.log.element.factory" />
  396. <entry key="update" value-ref="adhesiones.log.element.factory" />
  397. </map>
  398. </entry>
  399. <entry key="ar.com.redlink.individuos.servicios.adhesiones.rs.service.MovimientoRESTService">
  400. <map>
  401. <entry key="getAll" value-ref="adhesiones.log.element.factory" />
  402. </map>
  403. </entry>
  404. </map>
  405. </property>
  406. </bean>
  407.  
  408. </beans>
  409.  
  410.  
  411. <?xml version="1.0" encoding="UTF-8"?>
  412. <beans
  413. xmlns="http://www.springframework.org/schema/beans"
  414. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  415. xmlns:context="http://www.springframework.org/schema/context"
  416. xmlns:tx="http://www.springframework.org/schema/tx"
  417. xmlns:aop="http://www.springframework.org/schema/aop"
  418. xmlns:jdbc="http://www.springframework.org/schema/jdbc"
  419. xmlns:util="http://www.springframework.org/schema/util"
  420. xmlns:cxf="http://cxf.apache.org/core"
  421. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
  422. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
  423. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
  424. http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
  425. http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
  426. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
  427. http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
  428.  
  429. <bean id = "adhesiones.log4j.configurer" class = "org.springframework.beans.factory.config.MethodInvokingFactoryBean" >
  430. <property name="targetClass"><value>org.springframework.util.Log4jConfigurer</value></property>
  431. <property name="targetMethod"><value>initLogging</value></property>
  432. <property name="arguments">
  433. <list>
  434. <value>${adhesiones.log4j.home}</value>
  435. <value>${adhesiones.log4j.timeReload}</value>
  436. </list>
  437. </property>
  438. </bean>
  439.  
  440. </beans>
  441.  
  442.  
  443. <?xml version="1.0" encoding="UTF-8"?>
  444. <beans
  445. xmlns="http://www.springframework.org/schema/beans"
  446. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  447. xmlns:context="http://www.springframework.org/schema/context"
  448. xmlns:tx="http://www.springframework.org/schema/tx"
  449. xmlns:aop="http://www.springframework.org/schema/aop"
  450. xmlns:jdbc="http://www.springframework.org/schema/jdbc"
  451. xmlns:util="http://www.springframework.org/schema/util"
  452. xmlns:cxf="http://cxf.apache.org/core"
  453. xmlns:jaxws="http://cxf.apache.org/jaxws"
  454. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
  455. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
  456. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
  457. http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
  458. http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
  459. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
  460. http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
  461. http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
  462.  
  463. <bean id="adhesiones.logging.activity.interceptor"
  464. class="ar.com.redlink.framework.logging.client.interceptor.LoggingInterceptor">
  465. <property name="factoryResolver" ref="adhesiones.log.element.factory.resolver" />
  466. <property name="loggingContextProvider" ref="adhesiones.logging.context.provider" />
  467. <property name="loggingService" ref="redlink.framework.logging.client.service" />
  468. </bean>
  469.  
  470. <bean id="adhesiones.interceptor.proxy.creator"
  471. class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
  472. <property name="beanNames">
  473. <list>
  474. <value>adhesiones.movimiento.rest.service</value>
  475. <!-- <value>adhesiones.rest.service</value> -->
  476. </list>
  477. </property>
  478. <property name="interceptorNames">
  479. <list>
  480. <value>adhesiones.logging.activity.interceptor</value>
  481. </list>
  482. </property>
  483. </bean>
  484.  
  485. </beans>
  486.  
  487.  
  488. <?xml version="1.0" encoding="UTF-8"?>
  489. <beans xmlns="http://www.springframework.org/schema/beans"
  490. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
  491. xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop"
  492. xmlns:jdbc="http://www.springframework.org/schema/jdbc" xmlns:util="http://www.springframework.org/schema/util"
  493. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
  494. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
  495. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
  496. http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
  497. http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
  498. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd">
  499.  
  500. <!-- Beans para configuracion de Hibernate -->
  501. <bean id="adhesiones.session.factory"
  502. class="org.springframework.orm.hibernate5.LocalSessionFactoryBean">
  503. <property name="dataSource" ref="adhesiones.datasource" />
  504. <property name="hibernateProperties" ref="adhesiones.hibernate.properties" />
  505. <property name="mappingLocations">
  506. <list>
  507. <value>classpath:/ctx/hibernate/Email.hbm.xml</value>
  508. <!-- <value>classpath:/ctx/hibernate/movimiento.hbm.xml</value>
  509. <value>classpath:/ctx/hibernate/cliente.hbm.xml</value> -->
  510. </list>
  511. </property>
  512. </bean>
  513.  
  514. <bean id="adhesiones.hibernate.properties"
  515. class="org.springframework.beans.factory.config.PropertiesFactoryBean">
  516. <property name="properties">
  517. <props>
  518. <prop key="hibernate.show_sql">${adhesiones.hibernate.show.sql|true}</prop>
  519. <prop key="hibernate.hbm2ddl.auto">${adhesiones.hibernate.hbm2ddl.auto|none}</prop>
  520. <prop key="hibernate.dialect">${adhesiones.hibernate.dialect|org.hibernate.dialect.Oracle10gDialect}</prop>
  521. <prop key="hibernate.cache.use_second_level_cache">${adhesiones.hibernate.cache.use.second.level.cache|false}</prop>
  522. <prop key="hibernate.cache.use_query_cache">${adhesiones.hibernate.cache.use.query.cache|false}</prop>
  523. <prop key="hibernate.format_sql">${adhesiones.hibernate.format.sql|false}</prop>
  524. <prop key="hibernate.cache.provider_configuration_file_resource_path">/ctx/cache/adhesiones-ehcache.xml</prop>
  525. <prop key="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</prop>
  526. <prop key="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory</prop>
  527. <prop key="hibernate.current_session_context_class">org.springframework.orm.hibernate5.SpringSessionContext</prop>
  528. <prop key="hibernate.jdbc.use_get_generated_keys">true</prop>
  529. <prop key="hibernate.default_schema">USR_REFRESH</prop>
  530. </props>
  531. </property>
  532. </bean>
  533.  
  534. <bean id="adhesiones.hibernate.template" class="org.springframework.orm.hibernate5.HibernateTemplate">
  535. <property name="sessionFactory" ref="adhesiones.session.factory" />
  536. </bean>
  537.  
  538. <bean id="adhesiones.transaction.manager"
  539. class="org.springframework.orm.hibernate5.HibernateTransactionManager">
  540. <property name="sessionFactory" ref="adhesiones.session.factory" />
  541. </bean>
  542.  
  543.  
  544. <!-- TODO -->
  545.  
  546. <!-- config aop para especificar el funcionamiento del transaction manager -->
  547. <!-- advice -->
  548. <!-- <tx:advice id="txAdvice" transaction-manager="enrolamiento.transaction.manager">
  549. the transactional semantics...
  550. <tx:attributes>
  551. all methods starting with 'get' are read-only
  552. <tx:method name="get*" read-only="true"/>
  553. other methods use the default transaction settings (see below)
  554. <tx:method name="*"
  555. rollback-for=
  556. "java.lang.Exception,
  557. ar.com.redlink.hb.services.redlink.enrolamiento.exception.EnrolamientoError,
  558. ar.com.redlink.framework.persistence.dao.exception.RedLinkPersistenceException,
  559. org.hibernate.JDBCException,
  560. org.hibernate.HibernateException,
  561. java.lang.RuntimeException
  562. "/>
  563. </tx:attributes>
  564. </tx:advice>
  565.  
  566. <aop:config>
  567. pointcuts
  568. <aop:pointcut expression="execution(* ar.com.redlink.hb.services.redlink.enrolamiento.service.impl.EnrolamientoServiceImpl+.*(..))" id="enrolamiento.dao.pointcut"/>
  569. <aop:pointcut expression="execution(* ar.com.redlink.framework.persistence.dao.crud.RedLinkGenericDAO+.*(..))" id="generic.dao.pointcut"/>
  570. advisors
  571. <aop:advisor pointcut-ref="enrolamiento.dao.pointcut" advice-ref="txAdvice"/>
  572. <aop:advisor pointcut-ref="generic.dao.pointcut" advice-ref="txAdvice"/>
  573. </aop:config> -->
  574.  
  575. </beans>
  576.  
  577.  
  578.  
  579. <?xml version="1.0" encoding="UTF-8"?>
  580. <beans
  581. xmlns="http://www.springframework.org/schema/beans"
  582. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  583. xmlns:context="http://www.springframework.org/schema/context"
  584. xmlns:tx="http://www.springframework.org/schema/tx"
  585. xmlns:aop="http://www.springframework.org/schema/aop"
  586. xmlns:jdbc="http://www.springframework.org/schema/jdbc"
  587. xmlns:util="http://www.springframework.org/schema/util"
  588. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
  589. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
  590. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
  591. http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
  592. http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
  593. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd">
  594.  
  595. <bean id="adhesiones.datasource" class="org.springframework.jndi.JndiObjectFactoryBean">
  596. <property name="jndiName"><value>${adhesiones.datasource.jndi.name}</value></property>
  597. </bean>
  598.  
  599. </beans>
  600.  
  601.  
  602.  
  603. <?xml version="1.0" encoding="UTF-8"?>
  604. <beans
  605. xmlns="http://www.springframework.org/schema/beans"
  606. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  607. xmlns:context="http://www.springframework.org/schema/context"
  608. xmlns:tx="http://www.springframework.org/schema/tx"
  609. xmlns:aop="http://www.springframework.org/schema/aop"
  610. xmlns:jdbc="http://www.springframework.org/schema/jdbc"
  611. xmlns:util="http://www.springframework.org/schema/util"
  612. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
  613. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
  614. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
  615. http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
  616. http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
  617. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd">
  618.  
  619. <bean id="adhesiones.datasource" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
  620. <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
  621. <property name="url" value="jdbc:oracle:thin:@clusterdesaweb-scan:1521/lnkdhb.redlink.com.ar"/>
  622. <property name="username" value=""/>
  623. <property name="password" value=""/>
  624. <property name="maxTotal" value="200"/>
  625. <property name="maxIdle" value="200"/>
  626. <property name="minIdle" value="10"/>
  627. <property name="maxWaitMillis" value="60000"/>
  628. <property name="removeAbandonedOnMaintenance" value="true"/>
  629. <property name="removeAbandonedOnBorrow" value="true"/>
  630. </bean>
  631.  
  632. </beans>
  633.  
  634.  
  635. <?xml version="1.0" encoding="UTF-8"?>
  636. <beans
  637. xmlns="http://www.springframework.org/schema/beans"
  638. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  639. xmlns:context="http://www.springframework.org/schema/context"
  640. xmlns:tx="http://www.springframework.org/schema/tx"
  641. xmlns:aop="http://www.springframework.org/schema/aop"
  642. xmlns:jdbc="http://www.springframework.org/schema/jdbc"
  643. xmlns:util="http://www.springframework.org/schema/util"
  644. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
  645. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
  646. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
  647. http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
  648. http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
  649. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd">
  650.  
  651. <!-- DAO para Movimiento -->
  652. <!-- <bean id="adhesiones.movimiento.dao" class="ar.com.redlink.individuos.servicios.adhesiones.dao.impl.MovimientoDAOImpl">
  653. <property name="className" value="ar.com.redlink.individuos.servicios.adhesiones.entity.Movimiento"/>
  654. <property name="hibernateTemplate" ref="adhesiones.hibernate.template" />
  655. </bean> -->
  656.  
  657. <!-- DAO para Email -->
  658. <bean id="adhesiones.mail.dao" class="ar.com.redlink.individuos.servicios.adhesiones.dao.impl.EmailDAOImpl">
  659. <property name="className" value="ar.com.redlink.individuos.servicios.adhesiones.entity.Email"/>
  660. <property name="hibernateTemplate" ref="adhesiones.hibernate.template" />
  661. </bean>
  662.  
  663. </beans>
  664.  
  665. <?xml version="1.0" encoding="UTF-8"?>
  666. <beans
  667. xmlns="http://www.springframework.org/schema/beans"
  668. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  669. xmlns:context="http://www.springframework.org/schema/context"
  670. xmlns:tx="http://www.springframework.org/schema/tx"
  671. xmlns:aop="http://www.springframework.org/schema/aop"
  672. xmlns:jdbc="http://www.springframework.org/schema/jdbc"
  673. xmlns:util="http://www.springframework.org/schema/util"
  674. xmlns:cxf="http://cxf.apache.org/core"
  675. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
  676. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
  677. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
  678. http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
  679. http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
  680. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
  681. http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
  682.  
  683. <import resource="classpath:ctx/spring/redlink-framework-core-spring-extension.xml"/>
  684. <import resource="classpath:ctx/spring/redlink-framework-cache-spring-extension.xml"/>
  685.  
  686. <!-- Administrador de Cache -->
  687. <bean id="adhesiones.cache.manager" class="ar.com.redlink.framework.cache.factory.RedLinkCacheManagerFactoryBean">
  688. <property name="configLocation">
  689. <value>classpath:/ctx/cache/adhesiones-ehcache.xml</value>
  690. </property>
  691. </bean>
  692.  
  693. <!-- Metodos a ser cacheados -->
  694. <bean id="adhesiones.method.cache" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
  695. <property name="cacheName" value="DEFAULT_CACHE" />
  696. <property name="cacheManager" ref="adhesiones.cache.manager" />
  697. </bean>
  698.  
  699. <bean id="adhesiones.authentication.cache" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
  700. <property name="cacheName" value="AUTHENTICATION_CACHE" />
  701. <property name="cacheManager" ref="adhesiones.cache.manager" />
  702. <property name="timeToIdle" value="${adhesiones.security.cache.timeToIdleSeconds}" />
  703. <property name="timeToLive" value="${adhesiones.security.cache.timeToLiveSeconds}" />
  704. </bean>
  705.  
  706. <!-- Definicion del interceptor -->
  707. <bean id="adhesiones.method.cache.interceptor" class="ar.com.redlink.framework.cache.interceptor.MethodCacheInterceptor">
  708. <property name="activeCachePropertyName" value="adhesiones.cache.active"/>
  709. <property name="internalCache">
  710. <map>
  711. <entry key="DEFAULT_CACHE" value-ref="adhesiones.method.cache" />
  712. <entry key="AUTHENTICATION_CACHE" value-ref="adhesiones.authentication.cache" />
  713. </map>
  714. </property>
  715. <property name="propertiesConfiguration" ref="adhesiones.general.configuration" />
  716. </bean>
  717.  
  718. <bean id="adhesiones.cache.interceptor.proxy.creator" class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
  719. <property name="beanNames">
  720. <list>
  721. <value>adhesiones.authentication.manager.cached</value>
  722. </list>
  723. </property>
  724. <property name="interceptorNames">
  725. <list>
  726. <value>adhesiones.method.cache.interceptor</value>
  727. </list>
  728. </property>
  729. </bean>
  730.  
  731. </beans>
  732.  
  733.  
  734. <?xml version="1.0" encoding="UTF-8"?>
  735. <beans
  736. xmlns="http://www.springframework.org/schema/beans"
  737. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  738. xmlns:context="http://www.springframework.org/schema/context"
  739. xmlns:tx="http://www.springframework.org/schema/tx"
  740. xmlns:aop="http://www.springframework.org/schema/aop"
  741. xmlns:jdbc="http://www.springframework.org/schema/jdbc"
  742. xmlns:util="http://www.springframework.org/schema/util"
  743. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
  744. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
  745. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
  746. http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
  747. http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd
  748. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd">
  749.  
  750. <!-- Aspecto para transaccionalidad de servicios -->
  751. <aop:config proxy-target-class="false">
  752. <aop:pointcut id="adhesiones.tx.pointcut"
  753. expression="execution(* ar.com.redlink.framework.services.RedLinkService+.*(..))" />
  754. <aop:advisor advice-ref="adhesiones.tx.advice"
  755. pointcut-ref="adhesiones.tx.pointcut" />
  756. </aop:config>
  757.  
  758. </beans>
  759.  
  760.  
  761. <?xml version="1.0" encoding="UTF-8"?>
  762. <!DOCTYPE ehcache>
  763.  
  764. <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  765. xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd"
  766. updateCheck="false">
  767.  
  768. <diskStore path="java.io.tmpdir" />
  769.  
  770. <defaultCache maxElementsInMemory="10"
  771. eternal="false"
  772. timeToIdleSeconds="120"
  773. timeToLiveSeconds="120"
  774. overflowToDisk="true" />
  775.  
  776. <cache name="DEFAULT_CACHE"
  777. maxElementsInMemory="50"
  778. eternal="false"
  779. timeToIdleSeconds="600"
  780. timeToLiveSeconds="600"
  781. overflowToDisk="true" />
  782.  
  783. <cache name="AUTHENTICATION_CACHE"
  784. maxElementsInMemory="50"
  785. eternal="false"
  786. timeToIdleSeconds="600"
  787. timeToLiveSeconds="600"
  788. overflowToDisk="false"/>
  789.  
  790. </ehcache>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement