You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by cw...@apache.org on 2011/02/09 20:46:56 UTC

svn commit: r1069057 - /uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/PrimitiveAnalysisEngineController_impl.java

Author: cwiklik
Date: Wed Feb  9 19:46:56 2011
New Revision: 1069057

URL: http://svn.apache.org/viewvc?rev=1069057&view=rev
Log:
UIMA-2038 Modified to support clean shutdown

Modified:
    uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/PrimitiveAnalysisEngineController_impl.java

Modified: uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/PrimitiveAnalysisEngineController_impl.java
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/PrimitiveAnalysisEngineController_impl.java?rev=1069057&r1=1069056&r2=1069057&view=diff
==============================================================================
--- uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/PrimitiveAnalysisEngineController_impl.java (original)
+++ uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/PrimitiveAnalysisEngineController_impl.java Wed Feb  9 19:46:56 2011
@@ -290,8 +290,15 @@ public class PrimitiveAnalysisEngineCont
               }
             }
             if (isTopLevelComponent()) {
+              // add delay to allow controller listener to plug itself in
+              synchronized(this) {
+                try {
+                  this.wait(100);
+                } catch(Exception exx) {}
+              }
+              
               super.notifyListenersWithInitializationStatus(null);
-            }
+            } 
 
             // All internal components of this Primitive have been initialized. Open the latch
             // so that this service can start processing requests.
@@ -324,7 +331,7 @@ public class PrimitiveAnalysisEngineCont
           }
           super.serviceInitialized = true;
         }
-      }
+      } 
     } catch (AsynchAEException e) {
       if (UIMAFramework.getLogger(CLASS_NAME).isLoggable(Level.WARNING)) {
         UIMAFramework.getLogger(CLASS_NAME).logrb(Level.WARNING, CLASS_NAME.getName(),