You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Ja Li <ja...@gmail.com> on 2024/02/08 02:18:26 UTC

It seems bug CAMEL-7986 is back

Hi there,

when defining a route using .from() without specifying a .routeid() or
.id() the route will not work. There's no exception or error message, it
just doesn't get picked up.
Seems very similar to that old and fixed bug:
https://issues.apache.org/jira/browse/CAMEL-7986

I am using the latest Camel Core 4.3.0

Example:

restConfiguration(...)

rest("/api")

.description("Test REST Service")

.id("api-route")

.post("/bean")

.type(RequestTOPOJO.class)

.to("direct:beanService");


from("direct:beanService").routeId("direct-route").bean(MyBean.class);

Kind regards
Jacob

Re: It seems bug CAMEL-7986 is back

Posted by Otavio Rodolfo Piske <an...@gmail.com>.
Hi, if you can, please try to provide a reproducer (as described here:
https://camel.apache.org/camel-core/contributing/#_reporting_a_bug_or_problem
)

That may make it easier for the community to evaluate if there is a bug or
misconfiguration.

Kind regards

On Thu, Feb 8, 2024 at 3:18 AM Ja Li <ja...@gmail.com> wrote:

> Hi there,
>
> when defining a route using .from() without specifying a .routeid() or
> .id() the route will not work. There's no exception or error message, it
> just doesn't get picked up.
> Seems very similar to that old and fixed bug:
> https://issues.apache.org/jira/browse/CAMEL-7986
>
> I am using the latest Camel Core 4.3.0
>
> Example:
>
> restConfiguration(...)
>
> rest("/api")
>
> .description("Test REST Service")
>
> .id("api-route")
>
> .post("/bean")
>
> .type(RequestTOPOJO.class)
>
> .to("direct:beanService");
>
>
> from("direct:beanService").routeId("direct-route").bean(MyBean.class);
>
> Kind regards
> Jacob
>


-- 
Otavio R. Piske
http://orpiske.net