Skip to content

Fix pojo example: configure duration-max-seconds, stale javadoc - #205

Merged
Croway merged 1 commit into
apache:mainfrom
Croway:fix-pojo-duration
Sep 9, 2026
Merged

Croway merged 1 commit into
apache:mainfrom
Croway:fix-pojo-duration

Conversation

@Croway

@Croway Croway commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • README claimed the pojo example "self stops after one minute", but camel.main.duration-max-seconds was never configured, so it ran indefinitely — added the config to match the documented behavior (same pattern used in the quartz example).
  • Fixed a stale javadoc in NumberPojo.java referencing seda:numbers, when the actual endpoint consumed is direct:numbers.

Test plan

  • mvn package -DskipTests builds successfully

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EbjZemqMg395XFGDRekLBM
@Croway
Croway merged commit fe2895e into apache:main Sep 9, 2026
1 check passed
@Croway
Croway deleted the fix-pojo-duration branch September 9, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant