Examples
Once you have read about Getting Started and looked at the Enterprise Integration Patterns you might want to try out some examples.
Before starting to work on example you may want to check the requirements for working with Camel. Then Running Examples describes how to get the examples to run
Walk throughs
- Walk through an Example will walk through the code of the first example so you can understand how things fit together using a simple Java main(String[] args) method and using the DSL to set up some routes.
- Walk through another Example we continue the walk and look at the Spring DSL (XML based) routing.
Examples
- Aggregate Example shows the overhauled Aggregator EIP with persistent storage, which are part of Camel 2.3.
- BAM Example shows how to use Camel as a BAM (Business Activity Monitoring) framework, to monitor your business transactions.
- Cafe Example shows how to use Camel to implement a Cafe shop use case.
- CXF Example shows how to use Camel as the CXF services router, which consumes the request of a CXF client then passes the request to a CXF-based web service.
- CXF Example OSGi Blueprint shows how to use the camel-cxf consumer component in an OSGI environment using OSGi Blueprint with the OSGI HTTP service.
- CXF Example OSGi shows how to use the camel-cxf consumer component in an OSGI environment using Spring-DM with the OSGI HTTP service.
- CXF Proxy Example shows how to use Camel to proxy a web service using CXF.
- CXF Tomcat Example shows how to use Camel to expose a code-first web service using CXF as a web application to be deployed in Apache Tomcat.
- Docs Example
- ETL Example shows how to use Camel as an Extract Transform Load (ETL) tool
- Google App Engine (GAE) Example
- GAuth Example
- Guice JMS Example shows how to use Guice as the Dependency Injection framework to create some JMS base routes using just Java code and a properties file
- JMS-File Example
- JMX Component Example shows how to use the camel-jmx component.
- LoadBalancing Mina Example shows how to use the Load Balancer EIP to balance communication with remote servers using Mina.
- Loan Broker Example shows how to use Camel to implement the classical EIP composed messaging sample .
- Management Example shows how to use JMX in Camel to manage a running Camel application.
- OSGi Example
- OSGi-RMI Example
- POJO Messaging Example shows how to use annotations to produce, consume or route messages to Camel endpoints without using any DSL.
- Report Incident Example
- Report Incident, WS-Security Example
- Route Throttling Example shows how to use RoutePolicy and JMX in Camel to dynamically throttle routes.
- Servlet Tomcat Example shows how to use Camel to route messages using servlets running in Apache Tomcat.
- Simple Jira Bot shows how to use the camel-rss feed to send updates to an irc channel using camel-irc.
- Spring Example shows how to work with the Spring example using a Spring ApplicationContext to configure Camel with Java routing rules
- Spring Java Config Example shows how to use the Spring java config to configure the Camel with Java routing rules
- Spring Security Example shows how to implement a basic http authentication and role based authorization within a camel route by leverage the camel-spring-security component.
- Spring Web Services Example shows how to expose a SOAP-based web service using Camel and Spring Web Services.
- Spring XQuery Example shows how to work with the Spring example using a Spring ApplicationContext to configure Camel
- Tracer Example shows how to use Tracer in Camel to trace how Exchange is routed.