This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 5cace4c0548 [CAMEL-18403] Fix controlbus example in docs (#8181)
5cace4c0548 is described below
commit 5cace4c0548a70735379a88ca39d1f750836cb79
Author: llowinge <[email protected]>
AuthorDate: Thu Aug 18 15:48:20 2022 +0200
[CAMEL-18403] Fix controlbus example in docs (#8181)
---
components/camel-controlbus/src/main/docs/controlbus-component.adoc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/components/camel-controlbus/src/main/docs/controlbus-component.adoc
b/components/camel-controlbus/src/main/docs/controlbus-component.adoc
index 687b7943404..ea9dba73163 100644
--- a/components/camel-controlbus/src/main/docs/controlbus-component.adoc
+++ b/components/camel-controlbus/src/main/docs/controlbus-component.adoc
@@ -134,7 +134,7 @@ the route status you can do:
[source,java]
----
-String status = template.requestBody("controlbus:language:simple",
"${camelContext.getRouteStatus('myRoute')}", String.class);
+String status = template.requestBody("controlbus:language:simple",
"${camelContext.getRouteController().getRouteStatus('myRoute')}", String.class);
----
It's easier to use the `route` command to control lifecycle of