Search code examples
javaapache-camelspring-camel

is Apache Camel loads all routes once the server is Started?


I am working on the Apache Camel + Spring Boot Project. What is the best way to debug this kind of project?

As Apache Camel is loading routes when the server is started, I am unable to debug it as it is already loading routes.


Solution

  • Yes, Camel builds all routes before context start, but you can debug camel routes by using this. Also you can add .log() endpoints with DEBUG level to your routes or just add processes where you call System.out.println(). Either in a process you can use debug breakpoint.