Title: [870] trunk/core/src/main/java/org/servicemix/jbi/nmr/flow/seda/SedaFlow.java: Fix an exception occuring when shutting down a queue.
- Revision
- 870
- Author
- gnt
- Date
- 2005-11-18 11:36:15 -0500 (Fri, 18 Nov 2005)
Log Message
Fix an exception occuring when shutting down a queue.
The mbean unregistration should be done after the state changed, else an exception is thrown when trying to launch the jmx notification.
Modified Paths
Diff
Modified: trunk/core/src/main/java/org/servicemix/jbi/nmr/flow/seda/SedaFlow.java (869 => 870)
--- trunk/core/src/main/java/org/servicemix/jbi/nmr/flow/seda/SedaFlow.java 2005-11-18 15:23:40 UTC (rev 869)
+++ trunk/core/src/main/java/org/servicemix/jbi/nmr/flow/seda/SedaFlow.java 2005-11-18 16:36:15 UTC (rev 870)
@@ -115,8 +115,8 @@
broker.getRegistry().removeComponentPacketListener(this);
for (Iterator i = queueMap.values().iterator();i.hasNext();) {
SedaQueue queue = (SedaQueue) i.next();
+ queue.shutDown();
unregisterQueue(queue);
- queue.shutDown();
}
super.shutDown();
}