You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ra...@apache.org on 2008/12/29 17:50:53 UTC

svn commit: r729942 - /activemq/trunk/kahadb/src/main/java/org/apache/kahadb/store/KahaDBStore.java

Author: rajdavies
Date: Mon Dec 29 08:50:53 2008
New Revision: 729942

URL: http://svn.apache.org/viewvc?rev=729942&view=rev
Log:
Fix for https://issues.apache.org/activemq/browse/AMQ-1842

Modified:
    activemq/trunk/kahadb/src/main/java/org/apache/kahadb/store/KahaDBStore.java

Modified: activemq/trunk/kahadb/src/main/java/org/apache/kahadb/store/KahaDBStore.java
URL: http://svn.apache.org/viewvc/activemq/trunk/kahadb/src/main/java/org/apache/kahadb/store/KahaDBStore.java?rev=729942&r1=729941&r2=729942&view=diff
==============================================================================
--- activemq/trunk/kahadb/src/main/java/org/apache/kahadb/store/KahaDBStore.java (original)
+++ activemq/trunk/kahadb/src/main/java/org/apache/kahadb/store/KahaDBStore.java Mon Dec 29 08:50:53 2008
@@ -40,6 +40,7 @@
 import org.apache.activemq.command.XATransactionId;
 import org.apache.activemq.openwire.OpenWireFormat;
 import org.apache.activemq.protobuf.Buffer;
+import org.apache.activemq.store.AbstractMessageStore;
 import org.apache.activemq.store.MessageRecoveryListener;
 import org.apache.activemq.store.MessageStore;
 import org.apache.activemq.store.PersistenceAdapter;
@@ -118,12 +119,11 @@
         };
     }
 
-    public class KahaDBMessageStore implements MessageStore {
-        private final ActiveMQDestination destination;
+    public class KahaDBMessageStore extends AbstractMessageStore {
         protected KahaDestination dest;
 
         public KahaDBMessageStore(ActiveMQDestination destination) {
-            this.destination = destination;
+            super(destination);
             this.dest = convert( destination );
         }