This directory contains the various examples for working with Apache Camel. The examples can be run using Maven. When using the Maven command, Maven will attempt to download the required dependencies from a central repository to your local repository. View the individual example READMEs for details.
Main branch should only be used for development purposes, which will be pointing to the SNAPSHOT version of the next release.
To execute the examples, checkout into the tag for the desired release. For example:
$ git checkout tags/camel-examples-4.8.0
Then, install the root pom:
$ mvn install
After that, you should be able to execute the examples following each example’s readme’s instructions.
Number of Examples: 74 (0 deprecated)
Example | Category | Description |
---|---|---|
Java Lambda (java-lambda) |
Advanced |
An example for showing Camel DSL using Java Lambda coding style |
Resume Api Aws2 Kinesis (resume-api-aws2-kinesis) |
Advanced |
An example for showing the Resume API for consuming AWS Kinesis data streams. |
Resume Api Cassandraql (resume-api-cassandraql) |
Advanced |
An example for showing the Resume API for consuming data from Apache Cassandra. |
Resume Api File Offset (resume-api-file-offset) |
Advanced |
An example for showing the Resume API for processing a large file. |
Resume Api Fileset (resume-api-fileset) |
Advanced |
An example for showing the Resume API for processing a large directory. |
Resume Api Fileset Clusterized (resume-api-fileset-clusterized) |
Advanced |
An example for showing the Resume API for processing a large directory in clusterized mode. |
Resume Api Fileset Wal (resume-api-fileset-wal) |
Advanced |
An example for showing the Resume API for processing a large directory using the write ahead log. |
Routeloader (routeloader) |
Advanced |
Example loading and compiling Java routes on startup |
Routes Configuration (routes-configuration) |
Advanced |
Example with global routes configuration for error handling |
Routetemplate (routetemplate) |
Advanced |
How to use route templates (parameterized routes) |
Routetemplate Xml (routetemplate-xml) |
Advanced |
How to use route templates (parameterized routes) in XML |
Basic (basic) |
Beginner |
Basic example |
Console (console) |
Beginner |
An example that reads input from the console |
Csimple (csimple) |
Beginner |
Shows using compiled simple language |
Csimple Joor (csimple-joor) |
Beginner |
Shows using compiled simple language with jOOR compiler |
Spring (spring) |
Beginner |
An example showing how to work with Camel and Spring |
Main (main) |
Camel Standalone |
An example for showing standalone Camel |
Main Endpointdsl (main-endpointdsl) |
Camel Standalone |
An example for showing standalone Camel with Endpoint DSL |
Main Joor (main-joor) |
Camel Standalone |
An example for showing standalone Camel with jOOR runtime Java compiled |
Main Lambda (main-lambda) |
Camel Standalone |
Camel routes lambda style |
Main Tiny (main-tiny) |
Camel Standalone |
An example for showing standalone Camel with as few JARs on classpath as possible |
Main Xml (main-xml) |
Camel Standalone |
An example for showing standalone Camel using XML |
Main Yaml (main-yaml) |
Camel Standalone |
An example for showing standalone Camel using YAML |
Azure Eventhubs (azure-eventhubs) |
Cloud |
Azure Eventhubs example |
Azure Storage Blob (azure-storage-blob) |
Cloud |
Azure Storage Blob example |
Hazelcast Kubernetes (hazelcast-kubernetes) |
Cloud |
An example with Camel and Hazelcast running on Kubernetes |
Kafka Azure (kafka-azure) |
Cloud |
An example for showing standalone Camel with Kafka and Azure Storage Blob |
Main Endpointdsl Aws Kcl Kinesis (main-endpointdsl-aws-kcl-kinesis) |
Cloud |
An example for showing standalone Camel with Endpoint DSL and AWS2-Kinesis |
Main Endpointdsl Aws2 (main-endpointdsl-aws2) |
Cloud |
An example for showing standalone Camel with multiple AWS2 components |
Main Endpointdsl Aws2 S3 (main-endpointdsl-aws2-s3) |
Cloud |
An example for showing standalone Camel with Endpoint DSL and AWS2-S3 |
Main Endpointdsl Aws2 S3 Kafka (main-endpointdsl-aws2-s3-kafka) |
Cloud |
An example for showing standalone Camel with Endpoint DSL and AWS2-S3 and Kafka |
Main Endpointdsl Kafka Aws2 S3 (main-endpointdsl-kafka-aws2-s3) |
Cloud |
An example for showing standalone Camel with Endpoint DSL and Kafka and AWS2 S3 |
Main Endpointdsl Kafka Aws2 S3 Restarting Policy (main-endpointdsl-kafka-aws2-s3-restarting-policy) |
Cloud |
An example for showing standalone Camel with Endpoint DSL and Kafka, AWS2-S3 streaming upload mode with restarting policy |
Cassandra Kubernetes (cassandra-kubernetes) |
Database |
An example with Camel and Cassandra running on Kubernetes |
Couchbase Log (couchbase-log) |
Database |
An example for showing standalone Camel with Couchbase |
Debezium (debezium) |
Database |
An example for Debezium Component |
Debezium Eventhubs Blob (debezium-eventhubs-blob) |
Database |
An example for Debezium Component with Azure Event Hubs and Azure Storage Blob |
JDBC (jdbc) |
Database |
An example for showing Camel using JDBC component |
JOOQ (jooq) |
Database |
An example for showing Camel using JOOQ component |
Mongodb (mongodb) |
Database |
An example that uses Camel MongoDB component |
Aggregate (aggregate) |
EIP |
Demonstrates the persistent support for the Camel aggregator |
Aggregate Dist (aggregate-dist) |
EIP |
How to use the JdbcAggregationRepository in a distributed environment |
Bigxml Split (bigxml-split) |
EIP |
How to deal with big XML files in Camel |
Billboard Aggregate (billboard-aggregate) |
EIP |
Billboard aggregation example |
Cafe (cafe) |
EIP |
A cafe example showing how to work with Camel |
Cafe Endpointdsl (cafe-endpointdsl) |
EIP |
A cafe example showing how to work with Camel and the Endpoint DSL |
Load Balancing (loadbalancing) |
EIP |
An example that demonstrate load balancing messaging with mina servers (TCP/IP) |
AS2 Example (as2) |
File |
An example which demonstrates the use of the Camel AS2 component |
FTP (ftp) |
File |
An example for showing Camel FTP integration |
Minio (minio) |
File |
An example for showing Camel using MinIO Component |
Kamelet (kamelet) |
Kamelet |
How to use Kamelets |
Kamelet Chucknorris (kamelet-chucknorris) |
Kamelet |
How easy it is to create your own Kamelets |
Kamelet Main (kamelet-main) |
Kamelet |
How to easily run Kamelets |
Kamelet Sql (kamelet-sql) |
Kamelet |
Consume from PostgreSQL database connected through an AWS Secrets Manager Secret |
Google Pubsub (google-pubsub) |
Messaging |
Google Pubsub example |
Kafka (kafka) |
Messaging |
An example for Kafka |
Netty Custom Correlation (netty-custom-correlation) |
Messaging |
An example for showing Camel Netty with custom codec and correlation id |
Spring Pulsar (spring-pulsar) |
Messaging |
An example using Spring XML to talk to the Pulsar server from different kind of client techniques |
Flight Recorder (flight-recorder) |
Observability |
Diagnosing Camel with Java Flight Recorder |
JMX (jmx) |
Observability |
An example showing how to work with Camel and JMX |
Main Health (main-health) |
Observability |
An example for showing standalone Camel with Health Checks |
Main Micrometer (main-micrometer) |
Observability |
Standalone Camel with Micrometer and Prometheus |
Splunk (splunk) |
Observability |
An example using Splunk |
OAIPMH example (oaipmh) |
Search |
An example with OAIPMH component |
Aws Secrets Manager (aws-secrets-manager) |
Security |
An example for showing AWS Secrets Manager Camel component |
Aws Secrets Manager Reloading (aws-secrets-manager-reloading) |
Security |
An example for showing AWS Secrets Manager Camel component with reloading |
Azure Key Vault Reloading (azure-key-vault-reloading) |
Security |
An example for showing Azure Key Vault Camel component with reloading |
Google Secret Manager Reloading (google-secret-manager-reloading) |
Security |
An example for showing Google Secret Manager Camel component with reloading |
Salesforce Consumer (salesforce-consumer) |
Social |
An example that uses Salesforce Rest Streaming API |
Telegram (telegram) |
Social |
An example that uses Telegram API |
Whatsapp (whatsapp) |
Social |
An example that uses Whatsapp API |
Mapstruct (mapstruct) |
Transformation |
How to use MapStruct for POJO data mapping |
Spring XQuery (spring-xquery) |
Transformation |
An example using Spring XML to transform a message using XQuery |
Transformer and Validator Spring XML (transformer-demo) |
Transformation |
An example demonstrating declarative transformation and validation along data type declaration using Spring DSL |
If you hit any problem using Camel or have some feedback, then please let us know.
We also love contributors, so get involved :-)
The Camel riders!