Using Camel 2.15.1 - Camel Spring Boot from Maven Central and Spring Boot
1.2.3

The class CamelSpringBootApplicationController is not available in the
camel-spring-boot jar from Maven, despite being referenced in the
documentation HERE: http://camel.apache.org/spring-boot.html

Additionally, I cannot get my program to run without shutting down
immediately. I've created a simple route which copies a file from one
directory to the other, yet when I run the app (./gradlew bootRun or just
running the main method), Spring Boot shuts down immediately after startup.
Here's the code:

import org.apache.camel.builder.RouteBuilder;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class AdapterApplication {

    public static void main(final String[] args) {
        new SpringApplication(AdapterApplication.class).run(args);
    }

    @Bean
    RouteBuilder Router() {
        return new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                from("file:target/input").to("file:target/output");
            }
        };
    }
}

I would appreciate any help with either of these issues.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Spring-Boot-component-is-missing-CamelSpringBootApplicationController-tp5765405.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to