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 latest release. For example:
$ git checkout tags/camel-examples-4.0.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: 77 (0 deprecated)
Example | Category | Description |
---|---|---|
Resume Api Aws2 Kinesis (resume-api-aws2-kinesis) |
An example for showing the Resume API for consuming AWS Kinesis data streams. |
|
Resume Api Cassandraql (resume-api-cassandraql) |
An example for showing the Resume API for consuming data from Apache Cassandra. |
|
Resume Api File Offset (resume-api-file-offset) |
An example for showing the Resume API for processing a large file. |
|
Resume Api Fileset (resume-api-fileset) |
An example for showing the Resume API for processing a large directory. |
|
Resume Api Fileset Clusterized (resume-api-fileset-clusterized) |
An example for showing the Resume API for processing a large directory in clusterized mode. |
|
Resume Api Fileset Wal (resume-api-fileset-wal) |
An example for showing the Resume API for processing a large directory using the write ahead log. |
|
AS2 Example (as2) |
Beginner |
An example which demonstrates the use of the Camel AS2 component |
Aws Secrets Manager (aws-secrets-manager) |
Beginner |
An example for showing AWS Secrets Manager Camel component |
Aws Secrets Manager Reloading (aws-secrets-manager-reloading) |
Beginner |
An example for showing AWS Secrets Manager Camel component with reloading |
Azure Eventhubs (azure-eventhubs) |
Beginner |
Azure Eventhubs example |
Azure Key Vault Reloading (azure-key-vault-reloading) |
Beginner |
An example for showing Azure Key Vault Camel component with reloading |
Azure Storage Blob (azure-storage-blob) |
Beginner |
Azure Storage Blob example |
Basic (basic) |
Beginner |
Basic example |
Console (console) |
Beginner |
An example that reads input from the console |
Couchbase Log (couchbase-log) |
Beginner |
An example for showing standalone Camel with Couchbase |
Csimple (csimple) |
Beginner |
Shows using compiled simple language |
Csimple Joor (csimple-joor) |
Beginner |
Shows using compiled simple language with jOOR compiler |
FTP (ftp) |
Beginner |
An example for showing Camel FTP integration |
Google Pubsub (google-pubsub) |
Beginner |
Google Pubsub example |
Google Secret Manager Reloading (google-secret-manager-reloading) |
Beginner |
An example for showing Google Secret Manager Camel component with reloading |
Java8 (java8) |
Beginner |
An example for showing Camel DSL for Java 8 |
Kafka Azure (kafka-azure) |
Beginner |
An example for showing standalone Camel with Kafka and Azure Storage Blob |
Kamelet (kamelet) |
Beginner |
How to use Kamelets |
Kamelet Chucknorris (kamelet-chucknorris) |
Beginner |
How easy it is to create your own Kamelets |
Kamelet Main (kamelet-main) |
Beginner |
How to easily run Kamelets |
Kamelet Sql (kamelet-sql) |
Beginner |
Consume from PostgreSQL database connected through an AWS Secrets Manager Secret |
Main (main) |
Beginner |
An example for showing standalone Camel |
Main Endpointdsl (main-endpointdsl) |
Beginner |
An example for showing standalone Camel with Endpoint DSL |
Main Endpointdsl Aws Kcl Kinesis (main-endpointdsl-aws-kcl-kinesis) |
Beginner |
An example for showing standalone Camel with Endpoint DSL and AWS2-Kinesis |
Main Endpointdsl Aws2 S3 (main-endpointdsl-aws2-s3) |
Beginner |
An example for showing standalone Camel with Endpoint DSL and AWS2-S3 |
Main Endpointdsl Aws2 S3 Kafka (main-endpointdsl-aws2-s3-kafka) |
Beginner |
An example for showing standalone Camel with Endpoint DSL and AWS2-S3 and Kafka |
Main Endpointdsl Kafka Aws2 S3 (main-endpointdsl-kafka-aws2-s3) |
Beginner |
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) |
Beginner |
An example for showing standalone Camel with Endpoint DSL and Kafka, AWS2-S3 streaming upload mode with restarting policy |
Main Health (main-health) |
Beginner |
An example for showing standalone Camel with Health Checks |
Main Joor (main-joor) |
Beginner |
An example for showing standalone Camel with jOOR runtime Java compiled |
Main Lambda (main-lambda) |
Beginner |
Camel routes lambda style |
Main Tiny (main-tiny) |
Beginner |
An example for showing standalone Camel with as few JARs on classpath as possible |
Main Xml (main-xml) |
Beginner |
An example for showing standalone Camel using XML |
Main Yaml (main-yaml) |
Beginner |
An example for showing standalone Camel using YAML |
Minio (minio) |
Beginner |
An example for showing Camel using MinIO Component |
OAIPMH example (oaipmh) |
Beginner |
An example with OAIPMH component |
Routeloader (routeloader) |
Beginner |
Example loading and compiling Java routes on startup |
Routes Configuration (routes-configuration) |
Beginner |
Example with global routes configuration for error handling |
Routetemplate (routetemplate) |
Beginner |
How to use route templates (parameterized routes) |
Routetemplate Xml (routetemplate-xml) |
Beginner |
How to use route templates (parameterized routes) in XML |
Spring (spring) |
Beginner |
An example showing how to work with Camel and Spring |
Spring XQuery (spring-xquery) |
Beginner |
An example using Spring XML to transform a message using XQuery |
Cassandra Kubernetes (cassandra-kubernetes) |
Cloud |
An example with Camel and Cassandra running on Kubernetes |
Hazelcast Kubernetes (hazelcast-kubernetes) |
Cloud |
An example with Camel and Hazelcast running on Kubernetes |
Main Endpointdsl Aws2 (main-endpointdsl-aws2) |
Cloud |
An example for showing standalone Camel with multiple AWS2 components |
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) |
Transformer and Validator Spring XML (transformer-demo) |
Input/Output Type Contract |
An example demonstrating declarative transformation and validation along data type declaration using Spring DSL |
Flight Recorder (flight-recorder) |
Management and Monitoring |
Diagnosing Camel with Java Flight Recorder |
JMX (jmx) |
Management and Monitoring |
An example showing how to work with Camel and JMX |
Splunk (splunk) |
Management and Monitoring |
An example using Splunk |
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 |
Main Micrometer (main-micrometer) |
Observability |
Standalone Camel with Micrometer and Prometheus |
Reactive Executor Vertx (reactive-executor-vertx) |
Reactive |
An example for showing using VertX as reactive executor with standalone Camel |
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 |
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!