Quick start – creating a Camel application
Here, we are going to develop a Camel application that integrates e-mails, filesystem operations, and web services as means of communication.
As we have our project set up, we will go ahead and add a few dependencies. First, we will add slf4j-simple
to the project dependencies so we can see what's going on in the console.
<dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>1.7.2</version> </dependency>
Then, we will add the following code to the file src/main/java/com/company/cuscom/App.java
:
package com.company.cuscom; import org.apache.camel.CamelContext; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.impl.DefaultCamelContext; public class App ...
Get Instant Apache Camel Messaging System now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.