I am having the same problem that Tim has had.  I see there is no reply to his 
message so let me try and nudge it here.

In my case the version is 3.11.1 and Spring Boot 2.5.3.  I am trying everything 
but ,like Tim, I cant get past "Cannot find RestProducerFactory in Registry or 
as a Component to use".  I have 

    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-undertow</artifactId>
    </dependency>

Is there something explicit I need to do to register the "undertow" 
RestProducerFactory bean?

Regards
Bob
 
On 2020/12/16 21:00:45, Tim Adams <tim.j.ad...@albertautilitybilling.ca> wrote: 
> I have a camel-rest consumer working properly, but I am not able to make a 
> rest request from a route as per the examples in 
> https://camel.apache.org/components/latest/rest-component.html.
> 
> I am using Spring Boot 2.3.5.RELEASE and Camel version 3.5.0.
> 
> The exception message is "Cannot find RestProducerFactory in Registry or as a 
> Component to use". Everything I can find indicates that any one of 
> camel-http, camel-netty-http or camel-undertow should provide everything 
> needed for making rest requests from Camel routes, but I have tried all three 
> and none of them resolves the error.
> 
> The route I am using is:
> 
>         from("direct:Load")
>             .routeId("Load")
>             .log(LoggingLevel.DEBUG, "${routeId}: ${id}")
>             .to("rest:get:/load?host=http://localhost:8080/backend";)
> 
> Entering "localhost:8080/backend/load" in a web browser returns the data 
> properly.
> 
> I am attaching the stack trace.
> 
> Thanks,
> Tim
> 

Reply via email to