uima-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r709005 - /incubator/uima/sandbox/trunk/uima-as/uimaj-as-jms/src/main/java/org/apache/uima/adapter/jms/client/BaseUIMAAsynchronousEngineCommon_impl.java
Date Wed, 29 Oct 2008 21:01:21 GMT
Author: eae
Date: Wed Oct 29 14:01:21 2008
New Revision: 709005

URL: http://svn.apache.org/viewvc?rev=709005&view=rev
Log:
UIMA-1217 apply uimaj-as-jms-UIMA-1217-patch.txt

Modified:
    incubator/uima/sandbox/trunk/uima-as/uimaj-as-jms/src/main/java/org/apache/uima/adapter/jms/client/BaseUIMAAsynchronousEngineCommon_impl.java

Modified: incubator/uima/sandbox/trunk/uima-as/uimaj-as-jms/src/main/java/org/apache/uima/adapter/jms/client/BaseUIMAAsynchronousEngineCommon_impl.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/uima-as/uimaj-as-jms/src/main/java/org/apache/uima/adapter/jms/client/BaseUIMAAsynchronousEngineCommon_impl.java?rev=709005&r1=709004&r2=709005&view=diff
==============================================================================
--- incubator/uima/sandbox/trunk/uima-as/uimaj-as-jms/src/main/java/org/apache/uima/adapter/jms/client/BaseUIMAAsynchronousEngineCommon_impl.java
(original)
+++ incubator/uima/sandbox/trunk/uima-as/uimaj-as-jms/src/main/java/org/apache/uima/adapter/jms/client/BaseUIMAAsynchronousEngineCommon_impl.java
Wed Oct 29 14:01:21 2008
@@ -1009,7 +1009,13 @@
           status = new UimaASProcessStatusImpl(pt);
         }
         status.addEventStatus("Process", "Failed", exception);
-        notifyListeners(null, status, AsynchAEMessage.Process);
+        if ( cachedRequest != null && 
+                !cachedRequest.isSynchronousInvocation() && 
+                cachedRequest.getCAS() != null ) {
+          notifyListeners(cachedRequest.getCAS(), status, AsynchAEMessage.Process);
+        } else {
+          notifyListeners(null, status, AsynchAEMessage.Process);
+        }
         //   Done here
         return;
       }



Mime
View raw message