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 2025/03/07 16:18:18 UTC
(camel) 04/05: CAMEL-21830: camel-file - Using consumer template to consume a single file issue with idempotentEager
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 <cl...@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) {