You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/01/21 11:10:29 UTC

[camel] branch master updated: CAMEL-14419: Enrich EIP - Should wrap in UoW. Revert as it was no longer needed was another issue and this can be slightly faster without the uow processor wrapping to call an endpoint.

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 9faca8b  CAMEL-14419: Enrich EIP - Should wrap in UoW. Revert as it was no longer needed was another issue and this can be slightly faster without the uow processor wrapping to call an endpoint.
9faca8b is described below

commit 9faca8babc4c5f3a072bba475360186e1badeb87
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Jan 21 07:05:32 2020 +0100

    CAMEL-14419: Enrich EIP - Should wrap in UoW. Revert as it was no longer needed was another issue and this can be slightly faster without the uow processor wrapping to call an endpoint.
---
 .../camel-base/src/main/java/org/apache/camel/processor/Enricher.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/core/camel-base/src/main/java/org/apache/camel/processor/Enricher.java b/core/camel-base/src/main/java/org/apache/camel/processor/Enricher.java
index f484d0a..411b36a 100644
--- a/core/camel-base/src/main/java/org/apache/camel/processor/Enricher.java
+++ b/core/camel-base/src/main/java/org/apache/camel/processor/Enricher.java
@@ -197,9 +197,7 @@ public class Enricher extends AsyncProcessorSupport implements IdAware, RouteIdA
         }
         // record timing for sending the exchange using the producer
         final StopWatch watch = sw;
-        // make sure to wrap producer in unit of work
-        AsyncProcessor ap = AsyncProcessorConverterHelper.convert(new UnitOfWorkProducer(producer));
-        // wrap in UoW
+        AsyncProcessor ap = AsyncProcessorConverterHelper.convert(producer);
         boolean sync = ap.process(resourceExchange, new AsyncCallback() {
             public void done(boolean doneSync) {
                 // we only have to handle async completion of the routing slip