[ https://issues.apache.org/jira/browse/CAMEL-21556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18018679#comment-18018679 ]
Gardella Juan Pablo commented on CAMEL-21556: --------------------------------------------- I have the same problem with 4.14.0 and workaround provided by [~dariusx] worked for me too. I'll try to add a reproducible test. > REST route inlining is causing errors when a REST and timer is defined in the > same RouteBuilder > ----------------------------------------------------------------------------------------------- > > Key: CAMEL-21556 > URL: https://issues.apache.org/jira/browse/CAMEL-21556 > Project: Camel > Issue Type: Bug > Components: camel-core > Reporter: Darius Cooper > Priority: Minor > Attachments: MessageProcessingRoute.groovy > > > Related to: > [https://camel.apache.org/manual/rest-dsl.html#_inline_rest_dsl_as_a_single_route] > When updating from camel 4.4 to 4.8 we encountered a > _DirectConsumerNotAvailableException_ from our timer/cron routes that share a > direct route with a REST endpoint. In this example the exception was being > thrown for "direct:process" not being available. The REST endpoints > continued to function successfully. > I updated the property camel.rest.inline-routes = false and the timer routes > began working and was able to find "direct:process". It appears that when > REST inlining is true it is configuring "direct:process" in a way that other > routes cannot access it. > See attached example[^MessageProcessingRoute.groovy] -- This message was sent by Atlassian Jira (v8.20.10#820010)