if (dest != null && dest.isTemporary()) {
TempDestinationAdvisoryEvent event = (TempDestinationAdvisoryEvent) tempDestinationMap.get(dest);
if (event == null) {
event = new TempDestinationAdvisoryEvent(dest, true);
tempDestinationMap.put(dest, event);
ActiveMQObjectMessage msg = new ActiveMQObjectMessage();
msg.setObject(event);
msg.setJMSDeliveryMode(DeliveryMode.NON_PERSISTENT);
String destName = ActiveMQDestination.TEMP_DESTINATION_ADVISORY_PREFIX + dest.getPhysicalName();
ActiveMQDestination target = ActiveMQDestination.createDestination(dest.getDestinationType(), destName);
msg.setJMSDestination(target);
this.asyncSendPacket(msg);
}
}
}