It seems bug CAMEL-7986 is back

2024-02-07 Thread Ja Li
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: XML Io Dsl: Can a bean reference another bean?

2024-02-07 Thread Claus Ibsen
Hi


You use value="#bean:myBeanId"

https://camel.apache.org/manual/property-binding.html
https://camel.apache.org/components/next/others/java-xml-io-dsl.html



On Wed, Feb 7, 2024 at 4:35 PM Franz Paul Forsthofer
 wrote:

> Hello,
>
> in
> https://github.com/apache/camel/tree/main/dsl/camel-xml-io-dsl/src/test/resources/org/apache/camel/dsl/xml/io
> ,
> I found examples for the XML Io DSL. I did not see any example where a
> bean references another, something like the following
>
> 
>
> 
>   
> 
> 
> 
>
> Or where a bean reference an existing bean in the camel registry:
> 
>   
> 
> 
> 
>
> Is this not possible with XML Io Dsl? Is this planned as future
> improvement?
>
> Im using Camel Main 4.3 with Spring Boot. However, I cannot use Spring
> beans XML because I want to dynamically add the Camel routes after the
> Spring Boot application was started.
>
> Regards Franz
>


-- 
Claus Ibsen
-
@davsclaus
Camel in Action 2: https://www.manning.com/ibsen2


XML Io Dsl: Can a bean reference another bean?

2024-02-07 Thread Franz Paul Forsthofer
Hello,

in 
https://github.com/apache/camel/tree/main/dsl/camel-xml-io-dsl/src/test/resources/org/apache/camel/dsl/xml/io,
I found examples for the XML Io DSL. I did not see any example where a
bean references another, something like the following




  




Or where a bean reference an existing bean in the camel registry:

  




Is this not possible with XML Io Dsl? Is this planned as future improvement?

Im using Camel Main 4.3 with Spring Boot. However, I cannot use Spring
beans XML because I want to dynamically add the Camel routes after the
Spring Boot application was started.

Regards Franz