Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

spring-context.xml 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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"
  23. xmlns:tx="http://www.springframework.org/schema/tx"
  24. xsi:schemaLocation="http://www.springframework.org/schema/beans
  25. http://www.springframework.org/schema/beans/spring-beans.xsd
  26. http://www.springframework.org/schema/context
  27. http://www.springframework.org/schema/context/spring-context.xsd
  28. http://www.springframework.org/schema/tx
  29. http://www.springframework.org/schema/tx/spring-tx.xsd"
  30. default-lazy-init="true">
  31. <context:annotation-config/>
  32. <context:component-scan base-package="org.apache.archiva.admin.mock,org.apache.archiva.repository.content.base"/>
  33. <alias name="archivaTaskScheduler#mock" alias="archivaTaskScheduler#default" />
  34. <bean name="scheduler" class="org.apache.archiva.components.scheduler.DefaultScheduler">
  35. <property name="properties">
  36. <props>
  37. <prop key="org.quartz.scheduler.instanceName">scheduler1</prop>
  38. <prop key="org.quartz.threadPool.class">org.quartz.simpl.SimpleThreadPool</prop>
  39. <prop key="org.quartz.threadPool.threadCount">2</prop>
  40. <prop key="org.quartz.threadPool.threadPriority">4</prop>
  41. <prop key="org.quartz.jobStore.class">org.quartz.simpl.RAMJobStore</prop>
  42. </props>
  43. </property>
  44. </bean>
  45. <bean name="commons-configuration" class="org.apache.archiva.components.registry.commons.CommonsConfigurationRegistry">
  46. <property name="initialConfiguration">
  47. <value>
  48. <![CDATA[
  49. <configuration>
  50. <system/>
  51. <xml fileName="${appserver.base}/conf/archiva.xml" config-forceCreate="true"
  52. config-optional="true"
  53. config-name="org.apache.archiva.base" config-at="org.apache.archiva"/>
  54. </configuration>
  55. ]]>
  56. </value>
  57. </property>
  58. </bean>
  59. <alias name="userConfiguration#redback" alias="userConfiguration#default"/>
  60. <!-- ***
  61. JPA settings
  62. *** -->
  63. <bean name="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
  64. <property name="persistenceXmlLocation" value="classpath:META-INF/persistence-hsqldb.xml" />
  65. <property name="jpaPropertyMap">
  66. <map>
  67. <entry key="openjpa.ConnectionURL" value="jdbc:hsqldb:mem:redback_database" />
  68. <entry key="openjpa.ConnectionDriverName" value="org.hsqldb.jdbcDriver" />
  69. <entry key="openjpa.ConnectionUserName" value="sa" />
  70. <entry key="openjpa.ConnectionPassword" value="" />
  71. <entry key="openjpa.Log" value="${openjpa.Log:DefaultLevel=INFO,Runtime=ERROR,Tool=ERROR,SQL=ERROR,Schema=ERROR,MetaData=ERROR}" />
  72. <entry key="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)" />
  73. <entry key="openjpa.jdbc.MappingDefaults"
  74. value="ForeignKeyDeleteAction=restrict,JoinForeignKeyDeleteAction=restrict"/>
  75. </map>
  76. </property>
  77. </bean>
  78. <bean name="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager" >
  79. <property name="entityManagerFactory" ref="entityManagerFactory" />
  80. </bean>
  81. <tx:annotation-driven />
  82. <!-- ***
  83. End of JPA settings
  84. *** -->
  85. </beans>