Apache Camel

Apache Camel is an open-source integration framework that implements Enterprise Integration Patterns (EIPs). This page contains core concepts, Spring Boot integration how-to guides, and practical component examples with working code.

Beginner Intermediate Advanced

Apache Camel

15 articles
Apache Camel: Introduction & Core Concepts

Routes, endpoints, EIP patterns, Exchange model, Java DSL, YAML, and key components overview.

Apache Camel with Spring Boot

Auto-configured CamelContext, RouteBuilder beans, application.properties config, injecting Spring beans, REST DSL.

Apache Camel: Kafka Component

Consuming from and producing to Kafka topics using Camel route DSL, Kafka headers, and Spring Boot configuration.

Apache Camel: File Component

Polling directories, move/delete after processing, file headers, writing files, filtering, and idempotent consumer.

Apache Camel: Error Handling & onException

onException(), redelivery with backoff, dead letter channel, doTry/doCatch, and circuit breaker.

Apache Camel: REST DSL

Declare RESTful endpoints with Camel REST DSL, bind JSON bodies, connect to routes, and expose OpenAPI docs.

Apache Camel: JDBC & SQL Components

Query and update databases from Camel routes using JDBC and SQL components with named parameters and polling.

Apache Camel: Timer & Quartz Scheduling

Schedule Camel routes with the Timer component for intervals and Quartz for cron expressions and clustered execution.

Apache Camel: Enterprise Integration Patterns (EIP)

Content-Based Router, Splitter, Aggregator, Multicast, Wire Tap, Recipient List, and Throttler with Java DSL examples.

Apache Camel: Testing Routes

CamelTestSupport, MockEndpoint, AdviceWith, NotifyBuilder, and Spring Boot test annotations for verifying route logic.

Apache Camel: HTTP/HTTPS Component

Making REST client calls with the Camel HTTP component: GET, POST, SSL configuration, custom headers, retry on failure, and Spring Boot integration.

Apache Camel: Mail Component

Sending email via SMTP, HTML email, attachments, polling an IMAP inbox, and Gmail app password configuration.

Apache Camel: AWS S3 Component

Uploading objects, downloading files, streaming large payloads with multipart upload, polling a bucket for new objects, and Spring Boot credentials setup.

Apache Camel: Data Formats: JSON, XML & CSV

marshal() and unmarshal() with Jackson for JSON, JAXB for XML, Bindy for CSV, chaining formats, and implementing a custom DataFormat.

Apache Camel: Content-Based Router & Message Filter

choice/when/otherwise for content-based routing, filter() for message filtering, Recipient List for fan-out, and Dynamic Router in Java DSL.

Advanced Patterns

5 articles