]> source.dussan.org Git - archiva.git/commitdiff
JDO factory for users database is required
authorEmmanuel Venisse <evenisse@apache.org>
Fri, 8 Dec 2006 11:14:35 +0000 (11:14 +0000)
committerEmmanuel Venisse <evenisse@apache.org>
Fri, 8 Dec 2006 11:14:35 +0000 (11:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@483932 13f79535-47bb-0310-9956-ffa450edef68

archiva-webapp/src/main/resources/META-INF/plexus/application.xml

index 5c82db6ba1239678fff51c780edeff966e03726b..f9ddb54478c68a2488d9fdcdf6006595acbf6597 100644 (file)
       </configuration>
     </component>
 
+    <component>
+      <role>org.codehaus.plexus.jdo.JdoFactory</role>
+      <role-hint>users</role-hint>
+      <implementation>org.codehaus.plexus.jdo.DataSourceConfigurableJdoFactory</implementation>
+      <configuration>
+
+        <connectionFactoryName>java:comp/env/jdbc/users</connectionFactoryName>
+        <shutdownConnectionFactoryName>java:comp/env/jdbc/usersShutdown</shutdownConnectionFactoryName>
+
+        <!-- JPOX and JDO configuration -->
+        <persistenceManagerFactoryClass>org.jpox.PersistenceManagerFactoryImpl</persistenceManagerFactoryClass>
+        <otherProperties>
+          <property>
+            <name>org.jpox.autoCreateSchema</name>
+            <value>true</value>
+          </property>
+          <property>
+            <name>org.jpox.validateTables</name>
+            <value>false</value>
+          </property>
+          <property>
+            <name>org.jpox.validateConstraints</name>
+            <value>false</value>
+          </property>
+          <property>
+            <name>org.jpox.validateColumns</name>
+            <value>false</value>
+          </property>
+          <property>
+            <name>org.jpox.autoStartMechanism</name>
+            <value>None</value>
+          </property>
+          <property>
+            <name>org.jpox.transactionIsolation</name>
+            <value>READ_UNCOMMITTED</value>
+          </property>
+          <property>
+            <name>org.jpox.poid.transactionIsolation</name>
+            <value>READ_UNCOMMITTED</value>
+          </property>
+          <property>
+            <name>org.jpox.rdbms.dateTimezone</name>
+            <value>JDK_DEFAULT_TIMEZONE</value>
+          </property>
+        </otherProperties>
+      </configuration>
+    </component>
+
     <!--
      | Logger manager
      -->