Log Message:
-----------
If a preceding q2 deploy service descriptor calls shutdownQ2() ( Example was an early "02_pre-flight-check.xml" script to check required resources, and called shutdownQ2() if they where not ) -- the shutdown is called after all of the service descriptors are deployed, and not immediately, as expected.
Modified Paths:
--------------
trunk/jpos6/modules/q2/src/org/jpos/q2/Q2.java
Modified: trunk/jpos6/modules/q2/src/org/jpos/q2/Q2.java
===================================================================
--- trunk/jpos6/modules/q2/src/org/jpos/q2/Q2.java 2008-04-21 21:28:34 UTC (rev 2620)
+++ trunk/jpos6/modules/q2/src/org/jpos/q2/Q2.java 2008-05-01 22:05:53 UTC (rev 2621)
@@ -257,7 +257,7 @@
List startList = new ArrayList ();
Iterator iter = dirMap.entrySet().iterator();
try {
- while (iter.hasNext()) {
+ while (iter.hasNext() && !shutdown) {
Map.Entry entry = (Map.Entry) iter.next();
File f = (File) entry.getKey ();
QEntry qentry = (QEntry) entry.getValue ();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.