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 ma...@apache.org on 2015/11/02 15:16:14 UTC

svn commit: r1712010 - in /james/project/trunk: backends-common/cassandra/src/main/resources/META-INF/cassandra-session.xml dockerfiles/destination/conf/recipientrewritetable.xml server/app/pom.xml

Author: matthieu
Date: Mon Nov  2 14:16:14 2015
New Revision: 1712010

URL: http://svn.apache.org/viewvc?rev=1712010&view=rev
Log:
JAMES-1629 Bind Cassandra RecipientRewriteTable module in spring configuration

	   Contributed by Antoine Duprat

Modified:
    james/project/trunk/backends-common/cassandra/src/main/resources/META-INF/cassandra-session.xml
    james/project/trunk/dockerfiles/destination/conf/recipientrewritetable.xml
    james/project/trunk/server/app/pom.xml

Modified: james/project/trunk/backends-common/cassandra/src/main/resources/META-INF/cassandra-session.xml
URL: http://svn.apache.org/viewvc/james/project/trunk/backends-common/cassandra/src/main/resources/META-INF/cassandra-session.xml?rev=1712010&r1=1712009&r2=1712010&view=diff
==============================================================================
--- james/project/trunk/backends-common/cassandra/src/main/resources/META-INF/cassandra-session.xml (original)
+++ james/project/trunk/backends-common/cassandra/src/main/resources/META-INF/cassandra-session.xml Mon Nov  2 14:16:14 2015
@@ -43,10 +43,19 @@
           class="org.apache.james.mailbox.cassandra.CassandraMailboxModule"
           lazy-init="true"/>
 
+    <bean id="cassandra-rrt-module"
+          class="org.apache.james.rrt.cassandra.CassandraRRTModule"
+          lazy-init="true"/>
+
     <bean id="cassandra-module-composite"
           class="org.apache.james.backends.cassandra.init.CassandraModuleComposite"
           lazy-init="true">
-        <constructor-arg index="0" ref="cassandra-mailbox-module"/>
+        <constructor-arg index="0">
+            <list>
+                <ref bean="cassandra-mailbox-module"/>
+                <ref bean="cassandra-rrt-module"/>
+            </list>
+        </constructor-arg>
     </bean>
 
     <bean id="cassandra-cluster"

Modified: james/project/trunk/dockerfiles/destination/conf/recipientrewritetable.xml
URL: http://svn.apache.org/viewvc/james/project/trunk/dockerfiles/destination/conf/recipientrewritetable.xml?rev=1712010&r1=1712009&r2=1712010&view=diff
==============================================================================
--- james/project/trunk/dockerfiles/destination/conf/recipientrewritetable.xml (original)
+++ james/project/trunk/dockerfiles/destination/conf/recipientrewritetable.xml Mon Nov  2 14:16:14 2015
@@ -19,7 +19,7 @@
  -->
 
 <!-- The default table for storing James' RecipientRewriteTable mappings. -->
-<recipientrewritetable class="org.apache.james.rrt.jpa.JPARecipientRewriteTable">
+<recipientrewritetable class="org.apache.james.rrt.cassandra.CassandraRecipientRewriteTable">
   <recursiveMapping>true</recursiveMapping>
   <mappingLimit>10</mappingLimit>
 </recipientrewritetable>

Modified: james/project/trunk/server/app/pom.xml
URL: http://svn.apache.org/viewvc/james/project/trunk/server/app/pom.xml?rev=1712010&r1=1712009&r2=1712010&view=diff
==============================================================================
--- james/project/trunk/server/app/pom.xml (original)
+++ james/project/trunk/server/app/pom.xml Mon Nov  2 14:16:14 2015
@@ -465,6 +465,11 @@
         </dependency>
         <dependency>
             <groupId>org.apache.james</groupId>
+            <artifactId>james-server-data-cassandra</artifactId>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.james</groupId>
             <artifactId>james-server-data-file</artifactId>
             <scope>runtime</scope>
             <exclusions>



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