uima-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r707733 - /incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/main/java/org/apache/uima/adapter/jms/activemq/JmsOutputChannel.java
Date Fri, 24 Oct 2008 20:25:18 GMT
Author: eae
Date: Fri Oct 24 13:25:18 2008
New Revision: 707733

URL: http://svn.apache.org/viewvc?rev=707733&view=rev
Log:
UIMA-1214

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

Modified: incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/main/java/org/apache/uima/adapter/jms/activemq/JmsOutputChannel.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/main/java/org/apache/uima/adapter/jms/activemq/JmsOutputChannel.java?rev=707733&r1=707732&r2=707733&view=diff
==============================================================================
--- incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/main/java/org/apache/uima/adapter/jms/activemq/JmsOutputChannel.java
(original)
+++ incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/main/java/org/apache/uima/adapter/jms/activemq/JmsOutputChannel.java
Fri Oct 24 13:25:18 2008
@@ -1077,7 +1077,13 @@
         //  Serialize CAS for remote Delegates
         String serializer = anEndpoint.getSerializer();
         if ( serializer.equals("binary")) {
-          serializedCAS = uimaSerializer.serializeCasToBinary(cas);
+          if (entry.acceptsDeltaCas())  {
+            serializedCAS = uimaSerializer.serializeCasToBinary(cas, entry.getMarker());
+            entry.setSentDeltaCas(true);
+          } else {
+            serializedCAS = uimaSerializer.serializeCasToBinary(cas);
+            entry.setSentDeltaCas(false);
+          }
         } else {
           if (UIMAFramework.getLogger(CLASS_NAME).isLoggable(Level.INFO)) {
             UIMAFramework.getLogger(CLASS_NAME).logrb(Level.INFO, CLASS_NAME.getName(),



Mime
View raw message