Transforming CSV to Java Objects using Camel

In this tutorial, we will explore how to use Apache Camel in combination with Bindy to produce and consume CSV files. Camel is an open-source integration framework that provides a powerful routing and mediation engine. Bindy is a Camel component that allows for the transformation of Java objects to/from various data formats, including CSV. Prerequisites … Read more

How to Run JUnit 5 Tests with Spring Boot

If you’re building a Spring Boot application, you’ll likely want to test your code to ensure it’s working as expected. JUnit 5 is a powerful testing framework that makes it easy to write and run tests in Java. In this tutorial, we’ll show you how to run JUnit 5 tests with Spring Boot, including how … Read more

Apache Camel REST step-by-step example

In this article we will discuss how to produce and consume REST services using Apache Camel. Firstly we will show an example of REST Producer, then we will lean how to expose REST Endpoints in Camel.

Read more

How to use Camel JPA with Spring Boot

In this tutorial, we’ll learn how to use the Camel JPA component to read and write data from a PostgreSQL database. Specifically, we’ll cover how to create a Camel route that reads data from a JSON file, maps it to a JPA entity, and then inserts it into a PostgreSQL database using the Camel JPA component. We’ll wrap it all into a Spring Boot application.

Read more

Using the Routing Slip EIP with Camel

The Routing Slip EIP (Enterprise Integration Pattern) is a powerful tool that enables us to route a message through a series of processors based on a predetermined set of rules. The routing slip is essentially a list of destinations that a message must pass through before reaching its final destination. In this tutorial, we will learn how to use the Routing Slip EIP in Apache Camel.

Read more

Camel Processor made simple

The Camel Processor is a key building block of Camel, and gives you full access to the message being transferred including the message body, any headers, and any properties associated with the message. By creating a Processor you can modify any of those elements, for example you can alter the body of the message transforming it from XML to CSV or you can add custom properties or headers to it. Let’s see how to build a custom Processor which transforms the body of a Message.

Read more

How to transform data from XML to JSON with Camel

This article discusses how to transform data in a Camel route from XML to JSON using Jackson data format XML library. To test our Camel Route, we will include it in a Spring Boot application which receives as input an XML in its REST Controller.

Read more