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.
Apache Camel
15 articlesApache 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 articlesCamel Aggregator: Correlation, Completion Conditions & Timeout
Aggregate multiple messages into one: correlation expressions, AggregationStrategy, completion by size/timeout/predicate, persistent JdbcAggregationRepository, and parallel aggregation.
Camel Splitter & Scatter-Gather: Fan-Out with Aggregation
Split messages into sub-messages for parallel processing, Scatter-Gather with recipientList and dynamic endpoints, Multicast to fixed targets, streaming splits for large files, and error handling.
Camel Saga Pattern: Long-Running Transaction Compensation
Coordinate distributed transactions with the Saga EIP: compensation routes, propagation modes, saga-scoped options, timeout-triggered rollback, completion callbacks, and MicroProfile LRA integration.
Camel Throttler & Rate Limiter: Back Pressure in Integration Routes
Control message throughput: throttle() by request count per period, dynamic rate limits from headers or beans, per-correlation throttling, delay EIP, async throttling, circuit breaker with Resilience4j, and sampling.
Camel with Micrometer: Route Metrics, Tracing & Observability
Instrument Camel routes with Micrometer: auto-collected exchange metrics, custom counters and timers, micrometer DSL in routes, Prometheus scraping, Grafana dashboards, OpenTelemetry distributed tracing, and JMX management.