Guest User

Untitled

a guest
Nov 28th, 2017
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.04 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- ! Source code generated by Celerio, a Jaxio product. ! Documentation:
  3. http://www.jaxio.com/documentation/celerio/ ! Follow us on twitter: @jaxiosoft
  4. ! Need commercial support ? Contact us: info@jaxio.com ! Template pack-backend-jpa:src/main/resources/spring/applicationContext.p.vm.xml
  5. ! Template is part of Open Source Project: https://github.com/jaxio/pack-backend-jpa -->
  6. <beans default-lazy-init="true"
  7. xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  8. xmlns:context="http://www.springframework.org/schema/context"
  9. xmlns:util="http://www.springframework.org/schema/util" xmlns:security="http://www.springframework.org/schema/security"
  10. xmlns:tx="http://www.springframework.org/schema/tx" xmlns:mvc="http://www.springframework.org/schema/mvc"
  11. xmlns:p="http://www.springframework.org/schema/p" xmlns:task="http://www.springframework.org/schema/task"
  12. xmlns:aop="http://www.springframework.org/schema/aop"
  13. xsi:schemaLocation="
  14. http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
  15. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
  16. http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
  17. http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-4.0.xsd
  18. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
  19. http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd
  20. http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-4.2.xsd
  21. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd">
  22. <description><![CDATA[
  23. Main entry point for spring configuration
  24. ]]></description>
  25.  
  26. <!-- context -->
  27. <context:component-scan base-package="com.jaxio.jpa.querybyexample" />
  28. <context:component-scan base-package="ch.siemens.ts.ilat.book_application">
  29. <!-- exclude web beans as they live in the web application context -->
  30. <!-- Note: this regexp does not work if you try to escape the '.' -->
  31. <context:exclude-filter type="regex"
  32. expression="ch.siemens.ts.ilat.book_application.web.*" />
  33. </context:component-scan>
  34. <context:property-placeholder
  35. location="classpath*:database.properties,classpath*:hibernate.properties,classpath*:app-version.properties" />
  36.  
  37. <!-- security -->
  38. <security:authentication-manager>
  39. <security:authentication-provider user-service-ref="userDetailsService" />
  40. </security:authentication-manager>
  41. <security:global-method-security jsr250-annotations="enabled" pre-post-annotations="enabled" />
  42.  
  43. <!-- task -->
  44. <task:annotation-driven executor="myExecutor" scheduler="myScheduler" />
  45. <task:executor id="myExecutor" pool-size="5" />
  46. <task:scheduler id="myScheduler" pool-size="10" />
  47.  
  48. <!-- transaction -->
  49. <tx:annotation-driven />
  50. <!-- datasource -->
  51. <bean id="dataSource" class="org.apache.tomcat.jdbc.pool.DataSource"
  52. destroy-method="close"
  53. lazy-init="false"
  54. p:driverClassName="${jdbc.driver}"
  55. p:url="${jdbc.url}"
  56. p:username="${jdbc.user}"
  57. p:password="${jdbc.password}"
  58. p:initialSize="1"
  59. p:maxActive="50"
  60. p:maxIdle="10"
  61. p:maxWait="1000"
  62. p:defaultAutoCommit="false"
  63. p:removeAbandoned="true"
  64. p:removeAbandonedTimeout="60">
  65. <description><![CDATA[
  66. Simple datasource. This is a direct access to the datasource that can
  67. be used for specific queries that need to bypass JPA functionalities.
  68. However, if you need to use JDBC, please look at hibernate SQL-QUERIES,
  69. they would most probably be a more elegant way to solve your problem.
  70. ]]></description>
  71. </bean>
  72.  
  73. </beans>
Add Comment
Please, Sign In to add comment