Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

spring-context-test-upload.xml 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <?xml version="1.0"?>
  2. <!--
  3. ~ Licensed to the Apache Software Foundation (ASF) under one
  4. ~ or more contributor license agreements. See the NOTICE file
  5. ~ distributed with this work for additional information
  6. ~ regarding copyright ownership. The ASF licenses this file
  7. ~ to you under the Apache License, Version 2.0 (the
  8. ~ "License"); you may not use this file except in compliance
  9. ~ with the License. You may obtain a copy of the License at
  10. ~
  11. ~ http://www.apache.org/licenses/LICENSE-2.0
  12. ~
  13. ~ Unless required by applicable law or agreed to in writing,
  14. ~ software distributed under the License is distributed on an
  15. ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. ~ KIND, either express or implied. See the License for the
  17. ~ specific language governing permissions and limitations
  18. ~ under the License.
  19. -->
  20. <beans xmlns="http://www.springframework.org/schema/beans"
  21. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  22. xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
  23. xsi:schemaLocation="http://www.springframework.org/schema/beans
  24. http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  25. http://www.springframework.org/schema/context
  26. http://www.springframework.org/schema/context/spring-context-3.0.xsd
  27. http://www.springframework.org/schema/tx
  28. http://www.springframework.org/schema/tx/spring-tx.xsd"
  29. default-lazy-init="true">
  30. <context:annotation-config/>
  31. <context:component-scan
  32. base-package="org.apache.archiva.repository.content.maven2,org.apache.archiva.redback.keys,org.apache.archiva.rest.services.utils"/>
  33. <bean name="scheduler" class="org.apache.archiva.components.scheduler.DefaultScheduler">
  34. <property name="properties">
  35. <props>
  36. <prop key="org.quartz.scheduler.instanceName">scheduler1</prop>
  37. <prop key="org.quartz.threadPool.class">org.quartz.simpl.SimpleThreadPool</prop>
  38. <prop key="org.quartz.threadPool.threadCount">2</prop>
  39. <prop key="org.quartz.threadPool.threadPriority">4</prop>
  40. <prop key="org.quartz.jobStore.class">org.quartz.simpl.RAMJobStore</prop>
  41. </props>
  42. </property>
  43. </bean>
  44. <!-- wire up more basic configuration so it doesn't overwrite any config files -->
  45. <bean name="archivaConfiguration#default" class="org.apache.archiva.configuration.DefaultArchivaConfiguration">
  46. <property name="registry" ref="registry#default"/>
  47. </bean>
  48. <alias name="archivaConfiguration#default" alias="archivaConfiguration"/>
  49. <bean name="registry#default" class="org.apache.archiva.components.registry.commons.CommonsConfigurationRegistry">
  50. <property name="properties">
  51. <value>
  52. <![CDATA[
  53. <configuration>
  54. <system/>
  55. <xml fileName="${appserver.base}/conf/archiva.xml" config-forceCreate="true"
  56. config-optional="true"
  57. config-name="org.apache.archiva.base" config-at="org.apache.archiva"/>
  58. </configuration>
  59. ]]>
  60. </value>
  61. </property>
  62. </bean>
  63. <bean name="TestRepositorySessionFactoryBean" class="org.apache.archiva.TestRepositorySessionFactoryBean">
  64. <constructor-arg>
  65. <value>jcr</value>
  66. </constructor-arg>
  67. </bean>
  68. <bean name="taskQueueExecutor#repository-scanning"
  69. class="org.apache.archiva.components.taskqueue.execution.ThreadedTaskQueueExecutor" lazy-init="false">
  70. <property name="name" value="repository-scanning"/>
  71. <property name="executor" ref="taskExecutor#repository-scanning"/>
  72. <property name="queue" ref="taskQueue#repository-scanning"/>
  73. </bean>
  74. <alias name="repositorySessionFactory#jcr" alias="repositorySessionFactory"/>
  75. <alias name="userConfiguration#archiva" alias="userConfiguration#default"/>
  76. <alias name="authorizer#rbac" alias="authorizer#default"/>
  77. <alias name="userManager#configurable" alias="userManager#default"/>
  78. <!-- ***
  79. JPA settings
  80. *** -->
  81. <bean name="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
  82. <property name="jpaVendorAdapter" >
  83. <bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter" />
  84. </property>
  85. <property name="persistenceXmlLocation" value="classpath:META-INF/persistence-hsqldb.xml" />
  86. <property name="jpaPropertyMap">
  87. <map>
  88. <entry key="openjpa.ConnectionURL" value="jdbc:hsqldb:mem:redback_database" />
  89. <entry key="openjpa.ConnectionDriverName" value="org.hsqldb.jdbcDriver" />
  90. <entry key="openjpa.ConnectionUserName" value="sa" />
  91. <entry key="openjpa.ConnectionPassword" value="" />
  92. <entry key="openjpa.Log" value="${openjpa.Log:DefaultLevel=INFO,Runtime=ERROR,Tool=ERROR,SQL=ERROR,Schema=ERROR,MetaData=ERROR}" />
  93. <entry key="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)" />
  94. <entry key="openjpa.jdbc.MappingDefaults"
  95. value="ForeignKeyDeleteAction=restrict,JoinForeignKeyDeleteAction=restrict"/>
  96. </map>
  97. </property>
  98. </bean>
  99. <bean name="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager" >
  100. <property name="entityManagerFactory" ref="entityManagerFactory" />
  101. </bean>
  102. <tx:annotation-driven />
  103. <!-- ***
  104. End of JPA settings
  105. *** -->
  106. </beans>