ARTEMIS-223 fix on long conversion

This commit is contained in:
Clebert Suconic 2015-09-11 11:55:06 -04:00
parent 490662923c
commit 8533171459
1 changed files with 2 additions and 1 deletions

View File

@ -336,7 +336,8 @@ public final class XmlDataImporter extends ActionAbstract {
managementSession.start();
ActiveMQServerLogger.LOGGER.debug("Requesting ID for: " + queue);
ClientMessage reply = requestor.request(managementMessage);
queueID = (Long) ManagementHelper.getResult(reply);
Number idObject = (Number) ManagementHelper.getResult(reply);
queueID = idObject.longValue();
requestor.close();
ActiveMQServerLogger.LOGGER.debug("ID for " + queue + " is: " + queueID);
queueIDs.put(queue, queueID); // store it so we don't have to look it up every time