[rhmessaging-commits] rhmessaging commits: r3760 - store/branches/java/0.5.x-dev/src/main/java/org/apache/qpid/server/store/berkeleydb.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Wed Jan 6 15:15:27 EST 2010


Author: rgemmell
Date: 2010-01-06 15:15:26 -0500 (Wed, 06 Jan 2010)
New Revision: 3760

Modified:
   store/branches/java/0.5.x-dev/src/main/java/org/apache/qpid/server/store/berkeleydb/BDBMessageStore.java
Log:
Add the virtualhost name to the default environment to prevent overlap when failing to specify a location. Also make default location adhere to QPID_WORK

Modified: store/branches/java/0.5.x-dev/src/main/java/org/apache/qpid/server/store/berkeleydb/BDBMessageStore.java
===================================================================
--- store/branches/java/0.5.x-dev/src/main/java/org/apache/qpid/server/store/berkeleydb/BDBMessageStore.java	2010-01-06 19:22:06 UTC (rev 3759)
+++ store/branches/java/0.5.x-dev/src/main/java/org/apache/qpid/server/store/berkeleydb/BDBMessageStore.java	2010-01-06 20:15:26 UTC (rev 3760)
@@ -192,7 +192,7 @@
         super.configure(virtualHost, base, vHostConfig);
 
         Configuration config = vHostConfig.getStoreConfiguration();
-        File environmentPath = new File(config.getString(ENVIRONMENT_PATH_PROPERTY, "bdbEnv"));        
+        File environmentPath = new File(config.getString(ENVIRONMENT_PATH_PROPERTY, System.getProperty("QPID_WORK") + "/bdbstore/" + virtualHost.getName()));        
         if (!environmentPath.exists())
         {
             if (!environmentPath.mkdirs())



More information about the rhmessaging-commits mailing list