You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2010/04/28 22:12:23 UTC
svn commit: r939072 -
/james/server/trunk/spring-deployment/src/main/config/james/META-INF/persistence.xml
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-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org