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

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

commit 34694be359a8d521d7523594c12a44a5b1dc5934
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Fri Mar 7 17:07:03 2025 +0100

    CAMEL-21830: camel-file - Using consumer template to consume a single file 
issue with idempotentEager
---
 .../main/java/org/apache/camel/component/file/GenericFileConsumer.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java
 
b/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java
index b2273f7e55c..d008b026405 100644
--- 
a/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java
+++ 
b/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java
@@ -283,7 +283,7 @@ public abstract class GenericFileConsumer<T> extends 
ScheduledBatchPollingConsum
     void removeExcessiveIdempotentFile(GenericFile file, Exchange dynamic) {
         String key = file.getAbsoluteFilePath();
         if (endpoint.getIdempotentKey() != null) {
-            Exchange dummy = GenericFileHelper.createDummy(endpoint, dynamic, 
() -> file);
+            Exchange dummy = endpoint.createExchange(file);
             key = endpoint.getIdempotentKey().evaluate(dummy, String.class);
         }
         if (key != null) {

Reply via email to