Author: norman
Date: Wed Apr 28 20:12:22 2010
New Revision: 939072

URL: http://svn.apache.org/viewvc?rev=939072&view=rev
Log:
Use persimitic locking for imap jpa .. 

Modified:
    
james/server/trunk/spring-deployment/src/main/config/james/META-INF/persistence.xml

Modified: 
james/server/trunk/spring-deployment/src/main/config/james/META-INF/persistence.xml
URL: 
http://svn.apache.org/viewvc/james/server/trunk/spring-deployment/src/main/config/james/META-INF/persistence.xml?rev=939072&r1=939071&r2=939072&view=diff
==============================================================================
--- 
james/server/trunk/spring-deployment/src/main/config/james/META-INF/persistence.xml
 (original)
+++ 
james/server/trunk/spring-deployment/src/main/config/james/META-INF/persistence.xml
 Wed Apr 28 20:12:22 2010
@@ -36,6 +36,13 @@
             -->
             <!--  create tables on startup -->
             <property name="openjpa.jdbc.SynchronizeMappings" 
value="buildSchema(ForeignKeys=true)"/>
+            
+            <!-- persimistic locking -->
+            <property name="openjpa.LockManager"  value="pessimistic"/>
+            <property name="openjpa.ReadLockLevel"  value="read"/>
+            <property name="openjpa.WriteLockLevel"  value="write"/>
+            <property name="openjpa.jdbc.TransactionIsolation" 
value="repeatable-read"/>
+            
         </properties>
     </persistence-unit>
 </persistence>



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to