[
https://issues.apache.org/jira/browse/CAMEL-20867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-20867.
---------------------------------
Resolution: Information Provided
> Direct route called from another route gives
> DirectConsumerNotAvailableException
> --------------------------------------------------------------------------------
>
> Key: CAMEL-20867
> URL: https://issues.apache.org/jira/browse/CAMEL-20867
> Project: Camel
> Issue Type: Bug
> Components: camel-core, camel-quarkus
> Affects Versions: 4.5.0
> Environment: {code:bash}
> java --version
> openjdk 17.0.11 2024-04-16
> OpenJDK Runtime Environment (Red_Hat-17.0.11.0.9-1) (build 17.0.11+9)
> OpenJDK 64-Bit Server VM (Red_Hat-17.0.11.0.9-1) (build 17.0.11+9, mixed
> mode, sharing)
> {code}
> camel-quarkus 3.10.0
> Reporter: Barry Rawlinson
> Priority: Minor
>
> With camel-quarkus 3.9.5 (which uses camel 4.4.1) this routing works:
>
> {code:java}
> rest("/api/v1.0")
> .
> .get("/orders")
> .to("direct:get-orders")
> .get("/orders/{order_id}")
> .to("direct:get-order")
> {code}
> {code:java}
> from("direct:get-orders")
> // Code to get All orders unless "SingleOrderQuery" header is set to "Yes"
> // whereby an individual order is retrieved using the "order_id" header
> from("direct:get-order")
> .setHeader("SingleOrderQuery").constant("Yes")
> .to("direct:get-orders")
> {code}
> After upgrading Quarkus to 3.10.0 (Camel 4.5.X) or Quarkus 3.11.1 (Camel
> 4.6.0) I receive a DirectConsumerNotAvailableException for "get-orders" in
> the "get-order" route.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)