mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1169549 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4f14f1e5c0
commit
0d08a5a20f
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue