Author: jstrachan
Date: Wed Jul 30 11:04:11 2008
New Revision: 681153
URL: http://svn.apache.org/viewvc?rev=681153&view=rev
Log:
Notify the listener after the destination collections are updated; as a
listener might look at the collections :)
Modified:
activemq/trunk/activemq-core/src/main/java/org/apache/activemq/advisory/DestinationSource.java
Modified:
activemq/trunk/activemq-core/src/main/java/org/apache/activemq/advisory/DestinationSource.java
URL:
http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/advisory/DestinationSource.java?rev=681153&r1=681152&r2=681153&view=diff
==============================================================================
---
activemq/trunk/activemq-core/src/main/java/org/apache/activemq/advisory/DestinationSource.java
(original)
+++
activemq/trunk/activemq-core/src/main/java/org/apache/activemq/advisory/DestinationSource.java
Wed Jul 30 11:04:11 2008
@@ -143,10 +143,6 @@
}
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 @@
else {
LOG.warn("Unknown destination type: " + destination);
}
+ if (listener != null) {
+ listener.onDestinationEvent(event);
+ }
}
}
\ No newline at end of file