Home » Enterprise Java » Apache Camel

Apache Camel

Apache Camel Routing Tutorial

Table Of Contents 1. Introduction 2. What is Enterprise Integration Patterns 3. Basic concepts about Apache Camel 3.1. The Architecture of Apache Camel 3.2. What is CamelContext 3.3. What are Routes 3.3. What are Components 4. Technology Stack 5. Apache Camel Routing Examples 5.1. Dependencies 5.2. XML Request 5.3. Spring XML-Based Configuration 5.4. Java DSL-Based Configuration 6. Summary 7. References ...

Read More »

Apache Camel Splitter Example

1. Introduction In this article, we will see an example of Splitter using Apache Camel. We will see an example of how we can use Apache Camel‘s Splitter to split an order into its items and process each item individually. 2. What is Splitter? The Splitter from the EIP patterns allows you to split a message into a number of pieces ...

Read More »

Apache Camel AMQP Example

1. Introduction In this article, we will see an example of AMQP implementation of Apache ActiveMQ using Apache Camel. 2. What is AMQP? AMQP is an open standard application layer protocol for message-oriented middleware. The most important feature is that AMQP is a wire-level protocol and is interoperable by design. Also, the AMQP standard is by design more flexible and powerful (e.g., ...

Read More »

Apache Camel Aggregator Example

1. Introduction In this article, we will see an example of Aggregator using Apache Camel. We will create an order with two different types of items and shall see how these items are processed individually to get the price of each one and calculating the total price of all items of this order by using aggregation strategy. 2. What is Aggregator ? The ...

Read More »

Apache Camel XPath Example

Processors and endpoints are an integral part of a camel routing. Camel uses Domain Specific Language (DSL) to define its routing. When it comes to defining predicates in the routing, you need a mature expression language. There are many different expression languages to choose from, some of which include Simple, EL, JXPath, Mvel, OGNL, PHP, BeanShell, JavaScript, Groovy, Python, Ruby, ...

Read More »

Apache Camel Spring Example

Spring is the inversion of controller framework. Spring’s power comes in the way one can configure a bean and wire the dependencies. Camel route itself is a mix of various components, spring becomes a natural fit in Camel’s journey. In this article, we will see how spring supports camel using some examples. Before we start with our example, Let’s look into ...

Read More »

Apache Camel ActiveMQ Example

In this article, we will see some example of ActiveMQ component. Apache activeMQ is one of the most popular open source JMS provider. We will use it to send message to a JMS Queue or Topic and consume messages from a JMS Queue or Topic. To use this component you need to include activemq jar, camel-spring.jar and camel-jms.jar. Before we start ...

Read More »

Apache Camel Timer Example

You can use Camel’s timer component to schedule tasks to occur either at a specified time or at regular intervals. Timer comes as Camel’s core component. Its URI scheme is timer: A timer component generates events which in turn triggers the endpoint that follows and generate messages. It uses uses the JRE’s built-in timer mechanism to generate message exchanges at regular ...

Read More »

Apache Camel Exchange Example

Camel Exchange represents an abstraction for an exchange of messages which involves a request message and its corresponding reply or an exception message. It consists of the below components: Exchange ID – A unique ID that identifies the exchange. MEP – A pattern that denotes whether you’re using the InOnly or InOut messaging. InOnly message – Contains only a one-way ...

Read More »

Apache Camel Components Example

Applications communicate with each other using Messages via Message Channels. The end points of a message channels either consume or send messages. The components that model these end points are called ‘Endpoints’ and the factory that creates these endpoints are called Camel Components. In this article, we will see an example of registering a component using spring as well as ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns