Author: norman
Date: Thu Apr 8 14:14:17 2010
New Revision: 931952
URL: http://svn.apache.org/viewvc?rev=931952&view=rev
Log:
Update to use streaming with openjpa
Modified:
james/server/trunk/spring-deployment/src/main/config/james/META-INF/persistence.xml
james/server/trunk/spring-deployment/src/main/config/james/database.properties
james/server/trunk/spring-deployment/src/main/config/james/spring-beans.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=931952&r1=931951&r2=931952&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
Thu Apr 8 14:14:17 2010
@@ -5,13 +5,16 @@
<!-- Mailbox stuff-->
<class>org.apache.james.imap.jpa.mail.model.JPAHeader</class>
<class>org.apache.james.imap.jpa.mail.model.JPAMailbox</class>
+
<class>org.apache.james.imap.jpa.mail.model.AbstractJPAMailboxMembership</class>
<class>org.apache.james.imap.jpa.mail.model.JPAMailboxMembership</class>
+
<class>org.apache.james.imap.jpa.mail.model.openjpa.JPAStreamingMailboxMembership</class>
+
<class>org.apache.james.imap.jpa.mail.model.openjpa.JPAStreamingMailboxMembership</class>
<class>org.apache.james.imap.jpa.mail.model.AbstractJPAMessage</class>
<class>org.apache.james.imap.jpa.mail.model.JPAMessage</class>
<class>org.apache.james.imap.jpa.mail.model.openjpa.JPAStreamingMessage</class>
<class>org.apache.james.imap.jpa.mail.model.JPAProperty</class>
<class>org.apache.james.imap.jpa.user.model.JPASubscription</class>
-
+
<!-- UsersRepository -->
<class>org.apache.james.server.jpa.JPAUser</class>
Modified:
james/server/trunk/spring-deployment/src/main/config/james/database.properties
URL:
http://svn.apache.org/viewvc/james/server/trunk/spring-deployment/src/main/config/james/database.properties?rev=931952&r1=931951&r2=931952&view=diff
==============================================================================
---
james/server/trunk/spring-deployment/src/main/config/james/database.properties
(original)
+++
james/server/trunk/spring-deployment/src/main/config/james/database.properties
Thu Apr 8 14:14:17 2010
@@ -7,4 +7,13 @@ database.password=app
# Supported adapters are:
# DB2, DERBY, H2, HSQL, INFORMIX, MYSQL, ORACLE, POSTGRESQL, SQL_SERVER,
SYBASE
-vendorAdapter.database=DERBY
\ No newline at end of file
+vendorAdapter.database=DERBY
+
+# Use streaming for Blobs
+# This is only supported on a limited set of databases atm. You should check
if its supported by your DB before enable
+# it.
+#
+# See:
+#
http://openjpa.apache.org/builds/latest/docs/manual/ref_guide_mapping_jpa.html
#7.11. LOB Streaming
+#
+openjpa.streaming=false
\ No newline at end of file
Modified:
james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml
URL:
http://svn.apache.org/viewvc/james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml?rev=931952&r1=931951&r2=931952&view=diff
==============================================================================
--- james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml
(original)
+++ james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml
Thu Apr 8 14:14:17 2010
@@ -329,6 +329,7 @@
<constructor-arg index="0" ref="authenticator"/>
<constructor-arg index="1" ref="subscriper"/>
<constructor-arg index="2" ref="entityManagerFactory"/>
+ <constructor-arg index="3" value="${openjpa.streaming}"/>
</bean>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]