From 79f39b5a5a9b261fdfef6c1a65ec4c3291c78407 Mon Sep 17 00:00:00 2001 From: croway Date: Fri, 4 Sep 2026 09:44:49 +0200 Subject: [PATCH] Fix pojo example: configure duration-max-seconds, stale javadoc The README claims the example self-stops after one minute, but no camel.main.duration-max-seconds was configured so it actually ran indefinitely. Added the config to match the documented behavior. Also fixed NumberPojo's javadoc, which referenced seda:numbers while the actual endpoint is direct:numbers. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01EbjZemqMg395XFGDRekLBM --- pojo/src/main/java/sample/camel/NumberPojo.java | 2 +- pojo/src/main/resources/application.properties | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pojo/src/main/java/sample/camel/NumberPojo.java b/pojo/src/main/java/sample/camel/NumberPojo.java index 6456cca5..cd3fad37 100644 --- a/pojo/src/main/java/sample/camel/NumberPojo.java +++ b/pojo/src/main/java/sample/camel/NumberPojo.java @@ -21,7 +21,7 @@ import org.springframework.stereotype.Component; /** - * A POJO that listen to messages from the seda:numbers endpoint via {@link Consume} + * A POJO that listen to messages from the direct:numbers endpoint via {@link Consume} * and then via {@link MagicNumber} and {@link Produce} sends a message that will * be printed in the console. */ diff --git a/pojo/src/main/resources/application.properties b/pojo/src/main/resources/application.properties index 976417d4..d777e403 100644 --- a/pojo/src/main/resources/application.properties +++ b/pojo/src/main/resources/application.properties @@ -20,3 +20,6 @@ camel.main.name = PojoExample # keep camel running camel.main.run-controller = true + +# let Camel run for 60 seconds before shutting down +camel.main.duration-max-seconds = 60