Skip to content

Proposed changes in the article on stopping a route programmatically#6370

Merged
davsclaus merged 1 commit intoapache:mainfrom
dk2k:patch-1
Nov 2, 2021
Merged

Proposed changes in the article on stopping a route programmatically#6370
davsclaus merged 1 commit intoapache:mainfrom
dk2k:patch-1

Conversation

@dk2k
Copy link
Contributor

@dk2k dk2k commented Nov 2, 2021

Hi guys,
This article looks outdated.
line 151 contains: exchange.getContext().stopRoute("myRoute");
Meanwhile there is no method stopRoute(String) in org.apache.camel.CamelContext
I suggest this call instead^
exchange.getContext().getRouteController().stopRoute("myRoute");

Hi guys,
This article looks outdated.
line 151 contains: exchange.getContext().stopRoute("myRoute");
Meanwhile there is no method stopRoute(String) in org.apache.camel.CamelContext
I suggest this call instead^
exchange.getContext().getRouteController().stopRoute("myRoute");
@davsclaus davsclaus merged commit ecdc5d7 into apache:main Nov 2, 2021
luigidemasi pushed a commit to luigidemasi/camel that referenced this pull request Nov 8, 2021
Hi guys,
This article looks outdated.
line 151 contains: exchange.getContext().stopRoute("myRoute");
Meanwhile there is no method stopRoute(String) in org.apache.camel.CamelContext
I suggest this call instead^
exchange.getContext().getRouteController().stopRoute("myRoute");
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.

2 participants