[
https://issues.apache.org/jira/browse/CAMEL-18820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17648169#comment-17648169
]
Claus Ibsen edited comment on CAMEL-18820 at 12/15/22 5:25 PM:
---------------------------------------------------------------
Its like in java if you call your own method recursively, and yes end users can
write camel routes using choice / when that would route elsewhere etc.
was (Author: davsclaus):
Its like in java if you call your own method recursively
> Infinite recursion with direct endpoint
> ---------------------------------------
>
> Key: CAMEL-18820
> URL: https://issues.apache.org/jira/browse/CAMEL-18820
> Project: Camel
> Issue Type: Bug
> Components: came-core
> Affects Versions: 3.19.0
> Reporter: Marco Bergsma
> Priority: Minor
>
> Creating routes like this produces an infinite loop.
> {code:java}
> from(timer("test").repeatCount(1))
> .routeId("test")
> .to(direct("testing"));
> from(direct("testing"))
> .routeId("test-2")
> .log("Hey I am testing")
> .to(direct("testing")); {code}
> Is this something that don't want to allow or do we rely on users creating
> some stop condition?
>
>
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)