You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/06/04 10:46:00 UTC
[jira] [Commented] (CAMEL-18166) camel-spring-boot - Route from LambdaEndpointRouteBuilder not starting
[ https://issues.apache.org/jira/browse/CAMEL-18166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17547947#comment-17547947 ]
Claus Ibsen commented on CAMEL-18166:
-------------------------------------
This is not currently supported and need to be added as a new feature to auto discover these special routes
> camel-spring-boot - Route from LambdaEndpointRouteBuilder not starting
> ----------------------------------------------------------------------
>
> Key: CAMEL-18166
> URL: https://issues.apache.org/jira/browse/CAMEL-18166
> Project: Camel
> Issue Type: New Feature
> Components: camel-spring-boot
> Affects Versions: 3.17.0
> Reporter: Sergei Portnov
> Priority: Major
>
> 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)