Notify the listener after the destination collections are updated; as a listener might look at the collections :)

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@681153 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2008-07-30 18:04:11 +00:00
parent ecfae00e3c
commit 3a77300e06
1 changed files with 3 additions and 4 deletions

View File

@ -143,10 +143,6 @@ public class DestinationSource implements MessageListener {
}
protected void fireDestinationEvent(DestinationEvent event) {
if (listener != null) {
listener.onDestinationEvent(event);
}
// now lets update the data structures
ActiveMQDestination destination = event.getDestination();
boolean add = event.isAddOperation();
@ -189,5 +185,8 @@ public class DestinationSource implements MessageListener {
else {
LOG.warn("Unknown destination type: " + destination);
}
if (listener != null) {
listener.onDestinationEvent(event);
}
}
}