Spring Boot Example
The example generates messages using timer trigger, writes them to standard output and the mock endpoint (for testing purposes).
This example exposes Jolokia API and Spring Boot actuators endpoints (like metrics) via the webmvc endpoint. We consider this as best practice - Spring Boot applications with these APIs exposed can be easily monitored and managed by 3rd party tools. We also recommend to package your application as a fat WAR. Fat WARs can be executed just as regular fat jars, but you can also deploy them to the servlet containers like Tomcat. The "Fat WAR approach" offers you deployment flexibility, so we highly recommend it.
You will need to compile this example first:
To run the example type:
You can also execute the fat WAR directly:
You will see the message printed to the console every second. To stop the example hit
From Camel 2.17 the example ships with remote shell enabled which includes the Camel commands as well, so you can SSH into the running Camel application and use the camel commands to list / stop routes etc.