You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2024/12/18 11:26:00 UTC
[jira] [Commented] (CAMEL-21556) REST route inlining is causing errors when a REST and timer is defined in the same RouteBuilder
[ https://issues.apache.org/jira/browse/CAMEL-21556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17906717#comment-17906717 ]
Claus Ibsen commented on CAMEL-21556:
-------------------------------------
We cannot reproduce this - try without the master and also report the full stacktrace, and try with latest 4.9.0 release
> 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
> Reporter: Darius Cooper
> Priority: Major
> 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)