Sergei Portnov created CAMEL-18166:
--------------------------------------
Summary: camel-spring-boot - Route from Lambda
LambdaEndpointRouteBuilder not starting
Key: CAMEL-18166
URL: https://issues.apache.org/jira/browse/CAMEL-18166
Project: Camel
Issue Type: Bug
Components: camel-spring-boot
Affects Versions: 3.17.0
Reporter: Sergei Portnov
Routes from the LambdaEndpointRouteBuilder bean does not starts.
The problem seems to be that
org.apache.camel.spring.boot.SpringBootRoutesCollector only works with
LambdaRouteBuilder but not with LambdaEndpointRouteBuilder
[Zulip
discussion|https://camel.zulipchat.com/#narrow/stream/257301-camel-spring-boot/topic/LambdaEndpointRouteBuilder.20as.20spring.20bean/near/284773941]
Example:
{code:java}
@SpringBootApplication
public class CamelTestApplication {
@Bean
public LambdaEndpointRouteBuilder lambdaEndpointRouteBuilder() {
return rb -> rb
.from(rb.timer("timer").period(1000L))
.to(rb.bean("myService").method("doWork"));
}
public static void main(String[] args) {
SpringApplication.run(CamelTestApplication.class, args);
}
}{code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)