Home » Enterprise Java » Apache Camel

Apache Camel

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 »

Apache Camel CXF Example

In this article, I am going to show you an example of Apache Camel CXF. We will explore Camel’s capabilities for interacting with SOAP web services, which are commonly used in integration technology. The CXF component provides integration with Apache CXF for connecting to Java XML Web Services (JAX-WS) hosted in CXF and what is Apache CXF? Apache CXF is ...

Read More »

Apache Camel Hello World example

In this article, I am going to show you a ‘Hello World’ example of camel. But first let me first introduce you to Apache Camel. Apache Camel is an open-source integration framework which integrates systems. Messages play an important role in integrating systems, you can decide from which source to accept message, build the routing rules to determine how to process ...

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