git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1169549 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2011-09-11 21:41:49 +00:00
parent 4f14f1e5c0
commit 0d08a5a20f
1 changed files with 3 additions and 1 deletions

View File

@ -96,7 +96,9 @@ public class AdvisoryConsumer implements ActiveMQDispatcher {
ActiveMQTempDestination tempDest = (ActiveMQTempDestination)dest; ActiveMQTempDestination tempDest = (ActiveMQTempDestination)dest;
if (dinfo.getOperationType() == DestinationInfo.ADD_OPERATION_TYPE) { if (dinfo.getOperationType() == DestinationInfo.ADD_OPERATION_TYPE) {
tempDest.setConnection(null); if (tempDest.getConnection() != null) {
tempDest = (ActiveMQTempDestination) tempDest.createDestination(tempDest.getPhysicalName());
}
connection.activeTempDestinations.put(tempDest, tempDest); connection.activeTempDestinations.put(tempDest, tempDest);
} else if (dinfo.getOperationType() == DestinationInfo.REMOVE_OPERATION_TYPE) { } else if (dinfo.getOperationType() == DestinationInfo.REMOVE_OPERATION_TYPE) {
connection.activeTempDestinations.remove(tempDest); connection.activeTempDestinations.remove(tempDest);