blob: fab141fb1d303e74e2318784234c5e54558da13e [file] [log] [blame]
<?xml version="1.0"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
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-3.0.xsd">
<bean name="jdoUtilsTest" class="org.apache.archiva.redback.components.jdo.DefaultConfigurableJdoFactory"/>
<bean name="jdoFactory" class="org.apache.archiva.redback.components.jdo.DefaultConfigurableJdoFactory">
<!-- HSQLDB Configuration -->
<!--
NOTE: NO NOT USE THIS CONFIGURATION FOR A PRODUCTION SYSTEM.
HSQLDB keeps all data in memory at all times.
NOTE: JPOX 1.1.1 won't create the tables on start
http://www.jpox.org/servlet/jira/browse/CORE-2946
<property name="driverName" value="org.hsqldb.jdbcDriver"/>
<property name="url" value="jdbc:hsqldb:mem:test"/>
<property name="userName" value="sa"/>
-->
<!-- H2 Configuration -->
<property name="driverName" value="org.h2.Driver"/>
<property name="url" value="jdbc:h2:mem:test-db;create=true"/>
<property name="userName" value="sa"/>
<!-- Apache Derby Configuration -->
<!--
<driverName>org.apache.derby.jdbc.EmbeddedDriver</driverName>
<url>jdbc:derby:${plexus.home}/database;create=true</url>
<userName>sa</userName>
<password></password>
-->
<!-- Postgresql Configuration -->
<!--
<driverName>org.postgresql.Driver</driverName>
<url>jdbc:postgresql://localhost/continuum</url>
<userName>username</userName>
<password></password>
-->
<!-- JPOX and JDO configuration -->
<property name="persistenceManagerFactoryClass" value="org.jpox.PersistenceManagerFactoryImpl"/>
<property name="otherProperties">
<props>
<prop key="org.jpox.autoCreateSchema">true</prop>
<prop key="org.jpox.autoStartMechanism">SchemaTable</prop>
<prop key="org.jpox.validateTables">false</prop>
<prop key="org.jpox.validateConstraints">false</prop>
<prop key="org.jpox.autoStartMechanismMode">Ignored</prop>
<prop key="org.jpox.transactionIsolation">READ_UNCOMMITTED</prop>
<prop key="org.jpox.poid.transactionIsolation">READ_UNCOMMITTED</prop>
</props>
</property>
</bean>
</beans>