Skip to content

Latest commit

 

History

History
 
 

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Welcome to the Apache Camel Examples

Introduction

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.

Examples

Number of Examples: 85 (0 deprecated)

Example Category Description

Micrometer (camel-example-micrometer)

Advanced

An example showing how to work with Camel, Spring Java Config and Micrometer monitoring

Any23 example (camel-example-any23)

Beginner

An example that uses the Any23 dataformat

AS2 Example (camel-example-as2)

Beginner

An example which demonstrates the use of the Camel AS2 component

CDI (camel-example-cdi)

Beginner

An example showing how to work with Camel and CDI for dependency injection

CDI Properties (camel-example-cdi-properties)

Beginner

DeltaSpike configuration properties CDI example

CDI Camel XML (camel-example-cdi-xml)

Beginner

CDI and Camel XML example

Console (camel-example-console)

Beginner

An example that reads input from the console

FTP (camel-example-ftp)

Beginner

An example for showing Camel FTP integration

Java8 (camel-example-java8)

Beginner

An example for showing Camel DSL for Java 8

Main (camel-example-main)

Beginner

An example for showing standalone Camel

Main Tiny (camel-example-main-tiny)

Beginner

An example for showing standalone Camel with as few JARs on classpath as possible

Main Xml (camel-example-main-xml)

Beginner

An example for showing standalone Camel using XML

POJO Routing (camel-example-pojo-messaging)

Beginner

An example showing how to produce and consume messages from Camel endpoints using annotated POJOs

Servlet Tomcat (camel-example-servlet-tomcat)

Beginner

An example using Camel Servlet with Apache Tomcat

Spring (camel-example-spring)

Beginner

An example showing how to work with Camel and Spring

Spring Java Config (camel-example-spring-javaconfig)

Beginner

An example showing how to work with Camel and Spring Java Config

Spring XQuery (camel-example-spring-xquery)

Beginner

An example using Spring XML to transform a message using XQuery

Cassandra Kubernetes (camel-example-cassandra-kubernetes)

Cloud

An example with Camel and Cassandra running on Kubernetes

CDI AWS S3 (camel-example-cdi-aws-s3)

Cloud

AWS S3 CDI example

CDI Kubernetes (camel-example-cdi-kubernetes)

Cloud

An example running Camel CDI on Kubernetes

Hazelcast Kubernetes (camel-example-hazelcast-kubernetes)

Cloud

An example with Camel and Hazelcast running on Kubernetes

CDI Cassandra (camel-example-cdi-cassandraql)

Database

Cassandraql CDI example

Debezium (camel-example-debezium)

Database

An example for Debezium Component

JDBC (camel-example-jdbc)

Database

An example for showing Camel using JDBC component

JOOQ (camel-example-jooq)

Database

An example for showing Camel using JOOQ component

MyBatis (camel-example-mybatis)

Database

An example for showing Camel using MyBatis SQL mapper component

Aggregate (camel-example-aggregate)

EIP

Demonstrates the persistent support for the Camel aggregator

Widget Gadget using Apache ActiveMQ Artemis (camel-example-artemis)

EIP

The widget and gadget example from the EIP book using Apache ActiveMQ Artemis

Bigxml Split (camel-example-bigxml-split)

EIP

How to deal with big XML files in Camel

Billboard Aggr (camel-example-billboard-aggr)

EIP

Billboard aggregation example

Cafe (camel-example-cafe)

EIP

A cafe example showing how to work with Camel

Cafe Endpointdsl (camel-example-cafe-endpointdsl)

EIP

A cafe example showing how to work with Camel and the Endpoint DSL

Load Balancing (camel-example-loadbalancing)

EIP

An example that demonstrate load balancing messaging with mina servers (TCP/IP)

Loan Broker WebService (camel-example-loan-broker-cxf)

EIP

An example that shows the EIP’s loan broker demo

Loan Broker JMS (camel-example-loan-broker-jms)

EIP

An example that shows the EIP’s loan broker demo using JMS

Route Throttling (camel-example-route-throttling)

EIP

A client-server example using JMS transport where we on the server side can throttle the Camel route dynamically based on the flow of messages

Widget Gadget CDI (camel-example-widget-gadget-cdi)

EIP

The widget and gadget example from the EIP book

Widget Gadget Java (camel-example-widget-gadget-java)

EIP

The widget and gadget example from the EIP book

Widget Gadget XML (camel-example-widget-gadget-xml)

EIP

The widget and gadget example from the EIP book

FHIR (camel-example-fhir)

Health Care

An example running Camel FHIR using Camel CDI

Fhir Osgi (camel-example-fhir-osgi)

Health Care

An example running Camel FHIR using OSGi Blueprint

Transformer OSGi Blueprint (camel-example-transformer-blueprint)

Input/Output Type Contract

An example demonstrating declarative transformation along data type declaration using OSGi Blueprint

Transformer CDI (camel-example-transformer-cdi)

Input/Output Type Contract

An example demonstrating declarative transformation along data type declaration using Java DSL and CDI

Transformer and Validator Spring XML (camel-example-transformer-demo)

Input/Output Type Contract

An example demonstrating declarative transformation and validation along data type declaration using Spring DSL

CDI Metrics (camel-example-cdi-metrics)

Management and Monitoring

Dropwizard Metrics CDI example

JMX (camel-example-jmx)

Management and Monitoring

An example showing how to work with Camel and JMX

Management (camel-example-management)

Management and Monitoring

An example for showing Camel JMX management

OpenTracing (camel-example-opentracing)

Management and Monitoring

An example showing how to trace incoming and outgoing messages from Camel with OpenTracing

Splunk (camel-example-splunk)

Management and Monitoring

An example using Splunk

ActiveMQ Tomcat (camel-example-activemq-tomcat)

Messaging

An example using ActiveMQ Broker and Camel with Apache Tomcat

Artemis Amqp Blueprint (camel-example-artemis-amqp-blueprint)

Messaging

Demonstrates ActiveMQ Artemis using Camel’s AMQP component.

Artemis Large Messages (camel-example-artemis-large-messages)

Messaging

Demonstrates sending large messages (handles GBs in size) between Apache Camel and ActiveMQ Artemis in streaming mode

Google Pubsub (camel-example-google-pubsub)

Messaging

An example for Google Pubsub

JMS-File (camel-example-jms-file)

Messaging

An example that persists messages from JMS to files

Kafka (camel-example-kafka)

Messaging

An example for Kafka

Main Artemis (camel-example-main-artemis)

Messaging

An example for showing standalone Camel with ActiveMQ Artemis

Netty Custom Correlation (camel-example-netty-custom-correlation)

Messaging

An example for showing Camel Netty with custom codec and correlation id

Rabbitmq (camel-example-rabbitmq)

Messaging

An example showing how to work with Camel and RabbitMQ

Spring JMS (camel-example-spring-jms)

Messaging

An example using Spring XML to talk to the JMS server from different kind of client techniques

Spring Pulsar (camel-example-spring-pulsar)

Messaging

An example using Spring XML to talk to the Pulsar server from different kind of client techniques

CXF Blueprint (camel-example-cxf-blueprint)

OSGi

An example which use a CXF consumer and the OSGI HTTP Service

EHCache OSGi (camel-example-ehcache-blueprint)

OSGi

An example using EHCache with OSGi Blueprint

Netty HTTP (camel-example-netty-http)

OSGi

An example showing how to use a shared Netty HTTP server with multiple Camel applications in OSGi container

Olingo4 OSGi (camel-example-olingo4-blueprint)

OSGi

An example which use the Olingo4 component in OSGi Blueprint

Karaf OSGi Activator (camel-example-rest-karaf-osgi-activator)

OSGi

An example showing how to use Apache Camel on Apache Karaf with the OSGi Activator component

Servlet REST Blueprint (camel-example-servlet-rest-blueprint)

OSGi

An example using Servlet Rest with OSGi Blueprint

SQL Blueprint (camel-example-sql-blueprint)

OSGi

An example for showing Camel using SQL component with OSGi Blueprint

SSH (camel-example-ssh)

OSGi

A simple SSH example which creates a bundle that can be dropped into any OSGi container

SSH Security (camel-example-ssh-security)

OSGi

A Certificate secured SSH example that creates a bundle that can be dropped into any OSGi container

Swagger OSGi (camel-example-swagger-osgi)

OSGi

An example using REST DSL in XML and Swagger API

Kotlin (camel-example-kotlin)

Other Languages

A Camel route using Kotlin

Reactive Executor Vertx (camel-example-reactive-executor-vertx)

Reactive

An example for showing using VertX as reactive executor with standalone Camel

CDI Rest (camel-example-cdi-rest-servlet)

Rest

Rest DSL using Servlet with CDI example

Spark Rest (camel-example-spark-rest)

Rest

An example using Spark Rest

Swagger CDI (camel-example-swagger-cdi)

Rest

An example using REST DSL and Swagger Java with CDI

Spring Security (camel-example-spring-security)

Security

An example showing how to work with Camel and Spring Security

Telegram (camel-example-telegram)

Social

An example that uses Telegram API

Twitter Websocket (camel-example-twitter-websocket)

Social

An example that pushes new tweets to a web page using web-socket

Twitter Websocket Blueprint (camel-example-twitter-websocket-blueprint)

Social

An example that pushes new tweets to a web page using web-socket

CDI Test (camel-example-cdi-test)

Testing

An example illustrating Camel CDI testing features

CXF (camel-example-cxf)

WebService

An example which demonstrates the use of the Camel CXF component

CXF Proxy (camel-example-cxf-proxy)

WebService

An example which uses Camel to proxy a web service

CXF Tomcat (camel-example-cxf-tomcat)

WebService

An example using Camel CXF (code first) with Apache Tomcat

CXF using WS-Security Signature (camel-example-cxf-ws-security-signature)

WebService

CXF example using WS-Security Signature Action

Spring WebService (camel-example-spring-ws)

WebService

An example showing how to work with Camel and Spring Web Services

Help and contributions

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!