activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r946964 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/AsyncDataManager.java
Date Fri, 21 May 2010 10:08:23 GMT
Author: gtully
Date: Fri May 21 10:08:22 2010
New Revision: 946964

URL: http://svn.apache.org/viewvc?rev=946964&view=rev
Log:
remove deps on 1.6 constructor, no point making 1.6 a requirement for this little feature

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/AsyncDataManager.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/AsyncDataManager.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/AsyncDataManager.java?rev=946964&r1=946963&r2=946964&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/AsyncDataManager.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/AsyncDataManager.java
Fri May 21 10:08:22 2010
@@ -196,7 +196,9 @@ public class AsyncDataManager {
         try {
             this.scheduler.start();
         } catch (Exception e) {
-            throw new IOException(e);
+            IOException ioe =  new IOException("scheduler start: " + e);
+            ioe.initCause(e);
+            throw ioe;
         }
         this.scheduler.executePeriodically(cleanupTask, DEFAULT_CLEANUP_INTERVAL);
     }
@@ -337,7 +339,9 @@ public class AsyncDataManager {
         try {
             this.scheduler.stop();
         } catch (Exception e) {
-            throw new IOException(e);
+            IOException ioe = new IOException("scheduler stop: " + e);
+            ioe.initCause(e);
+            throw ioe;
         }
         accessorPool.close();
         storeState(false);



Mime
View raw message