[hornetq-commits] JBoss hornetq SVN: r10703 - branches/Branch_2_2_EAP_export_tool/src/main/org/hornetq/core/persistence/tools.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu May 19 17:44:05 EDT 2011


Author: jicken
Date: 2011-05-19 17:44:05 -0400 (Thu, 19 May 2011)
New Revision: 10703

Modified:
   branches/Branch_2_2_EAP_export_tool/src/main/org/hornetq/core/persistence/tools/ManageDataTool.java
Log:
queue mapping now added in both cases: existing and non-existing queues

Modified: branches/Branch_2_2_EAP_export_tool/src/main/org/hornetq/core/persistence/tools/ManageDataTool.java
===================================================================
--- branches/Branch_2_2_EAP_export_tool/src/main/org/hornetq/core/persistence/tools/ManageDataTool.java	2011-05-19 21:27:14 UTC (rev 10702)
+++ branches/Branch_2_2_EAP_export_tool/src/main/org/hornetq/core/persistence/tools/ManageDataTool.java	2011-05-19 21:44:05 UTC (rev 10703)
@@ -514,6 +514,9 @@
                   if (!queueQuery.isExists()) {
                      coreSession.createQueue(queue.getAddress(), queue.getName(), queue.getFilterString(), message.isDurable());
                      queueQuery = coreSession.queueQuery(SimpleString.toSimpleString(queue.getName()));
+                  }
+
+                  if (!queueMapping.containsKey(queue.getId())) {
                      queueMapping.put(queue.getId(), queueQuery.getId());
                   }
                }



More information about the hornetq-commits mailing list