Skip to content

jboss-fuse/camel-spring-boot-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the Apache Camel Spring-Boot Examples

Introduction

This project contains the various examples for working with Apache Camel Spring Boot. 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.

Executing

Master 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-spring-boot-examples-3.5.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.

Examples

Number of Examples: 56 (0 deprecated)

Example Category Description

Health Checks (health-checks)

Mail Ms Exchange Oauth2 (mail-ms-exchange-oauth2)

An example showing how to use Camel on Spring Boot to connect with IMAP protocol and access email data for Office 365 users using OAuth2 authentication

Spring Boot Jta Jpa (spring-boot-jta-jpa)

An example showing JTA with Spring Boot

Twitter Salesforce (twitter-salesforce)

Twitter mentions is created as contacts in Salesforce

Undertow Spring Security (undertow-spring-security)

Advanced

Example on how to use the Camel Undertow component with spring security and Keycloak

Webhook (webhook)

Advanced

Example on how to use the Camel Webhook component

Jira (jira)

Beginner

An example that uses Jira Camel API

Kamelet Chucknorris (kamelet-chucknorris)

Beginner

How easy it is to create your own Kamelets

Load Balancer Eip (load-balancer-eip)

Beginner

An example showing Load Balancer EIP with Camel and Spring Boot

Pojo (pojo)

Beginner

An example showing how to work with Camel POJO routing with Spring Boot

Quartz (quartz)

Beginner

An example showing how to work with Camel Quartz and Camel Log with Spring Boot

REST OpenApi (rest-openapi-simple)

Beginner

This example shows how to call a Rest service defined using OpenApi specification

REST Swagger (rest-swagger-simple)

Beginner

This example shows how to call a Rest service defined using Swagger specification

Spring Boot Route Reload (route-reload)

Beginner

Live reload of routes if file is updated and saved

Routetemplate (routetemplate)

Beginner

How to use route templates (parameterized routes)

Splitter Eip (splitter-eip)

Beginner

An example showing Splitter EIP with Camel and Spring Boot

Spring Boot (spring-boot)

Beginner

An example showing how to work with Camel and Spring Boot

Type Converter (type-converter)

Beginner

An example showing how to create custom type converter with Camel and Spring Boot

Unit Testing (unit-testing)

Beginner

An example showing how to write unit tests with Camel and Spring Boot

Spring Boot XML (xml)

Beginner

An example showing how to work with Camel routes in XML files and Spring Boot

Spring Boot XML Import (xml-import)

Beginner

An example showing how to work with Spring XML files imported with embedded CamelContext

Aws2 S3 (aws2-s3)

Cloud

An example showing the Camel AWS2 S3 component with Spring Boot

gRPC Spring Boot (grpc)

Cloud

An example showing the Camel gRPC component with Spring Boot

gRPC Kubernetes (grpc-kubernetes)

Cloud

An example showing the Camel gRPC component with Spring Boot running on Kubernetes

Infinispan (infinispan)

Cloud

An example showing the Camel Infinispan component with Spring Boot

Spring Boot ServiceCall (servicecall)

Cloud

An example showing how to work with Camel ServiceCall EIP and Spring Boot

Master (master)

Clustering

An example showing how to work with Camel’s Master component and Spring Boot

Soap Cxf (soap-cxf)

CXF

An example showing the Camel SOAP CXF

Arangodb (arangodb)

Database

An example showing the Camel ArangoDb component with Spring Boot

Spring Boot REST JPA (rest-jpa)

Database

An example demonstrating how to use Camel REST DSL with JPA to expose a RESTful API that performs CRUD operations on a database

Resilience4j (resilience4j)

EIP

An example showing how to use Resilience4j EIP as circuit breaker in Camel routes

Saga (saga)

EIP

This example shows how to work with a simple Apache Camel application using Spring Boot and Narayana LRA Coordinator to manage distributed actions implementing SAGA pattern

Fhir (fhir)

Health Care

An example showing how to work with Camel, FHIR and Spring Boot

Fhir Auth Tx (fhir-auth-tx)

Health Care

An example showing how to work with Camel, FHIR Authorization, FHIR Transaction and Spring Boot

Validator Spring Boot (validator)

Input/Output Type Contract

An example showing how to work with declarative validation and Spring Boot

Actuator Http Metrics (actuator-http-metrics)

Management and Monitoring

Example on how to use Spring Boot’s Actuator endpoints to gather info like mappings or metrics

OpenTracing APM (apm-opentracing)

Management and Monitoring

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

Metrics (metrics)

Management and Monitoring

An example showing how to work with Camel and Spring Boot and report metrics to Graphite

OpenTracing (opentracing)

Management and Monitoring

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

Supervising Route Controller (supervising-route-controller)

Management and Monitoring

An example showing how to work with Camel’s Supervising Route Controller and Spring Boot

Zipkin (zipkin)

Management and Monitoring

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

Activemq (activemq)

Messaging

An example showing how to work with Camel, ActiveMQ and Spring Boot

Amqp (amqp)

Messaging

An example showing how to work with Camel, ActiveMQ Amqp and Spring Boot

Kafka Avro (kafka-avro)

Messaging

An example for Kafka avro

Kafka Offsetrepository (kafka-offsetrepository)

Messaging

An example for Kafka offsetrepository

Paho Mqtt5 Shared Subscriptions (paho-mqtt5-shared-subscriptions)

Messaging

An example showing how to set up multiple mqtt5 consumers that use shared subscription feature of MQTT5

Rabbitmq (rabbitmq)

Messaging

An example showing how to work with Camel and RabbitMQ

Strimzi (strimzi)

Messaging

Camel example which a route is defined in XML for Strimzi integration on Openshift/Kubernetes

Widget Gadget (widget-gadget)

Messaging

The widget and gadget example from EIP book, running on Spring Boot

Reactive Streams (reactive-streams)

Reactive

An example that shows how Camel can exchange data using reactive streams with Spring Boot reactor

Geocoder (geocoder)

Rest

An example showing the Camel Geocoder component via REST DSL with Spring Boot

Rest Openapi (rest-openapi)

Rest

An example showing Camel REST DSL and OpenApi with Spring Boot

Rest Openapi Springdoc (rest-openapi-springdoc)

Rest

An example showing Camel REST DSL and OpenApi with a Springdoc UI in a Spring Boot application

Rest Producer (rest-producer)

Rest

An example showing how to use Camel Rest to call a REST service

Rest Swagger (rest-swagger)

Rest

An example showing Camel REST DSL and Swagger with Spring Boot

Spring Boot REST OIDC (rest-oidc)

Security

An example demonstrating how to Secure Camel REST endpoints with Spring Security and Red Hat SSO

Deploying the examples in openshift or dev-sandbox using devfiles

Steps:

  • First login to your openshift or dev-sandbox and create a new project. Here $EXAMPLE is the name of the example you want to deploy:

    $ oc new-project csbex-$EXAMPLE
  • Create an odo component using the devfile.yaml

    $ odo create csb-ubi8 --app $EXAMPLE
  • To set the specific example you want to deploy as an env variable (SUB_FOLDER):

    $ odo config set --env SUB_FOLDER=$EXAMPLE
  • Then push it to openshift cluster:

    $ odo push

Note:

  • Only few examples can be deployed using devfile:

    fhir-auth-tx, geocoder, health-checks, kamelet-chucknorris, load-balancer-eip, metrics, paho-mqtt5-shared-subscriptions, pojo, quartz, reactive-streams, rest-jpa, rest-openapi-springdoc,
    rest-openapi, rest-producer, rest-swagger, route-reload, routetemplate, splitter-eip, spring-boot, supervising-route-controller, type-converter, unit-testing, validator, xml-import and xml.
  • Please delete .odo folder in your repository before starting to deploy another example, so that it will delete the components related to previous example.

  • If you have an internal repository, set the MAVEN_MIRROR_URL environment with your maven repo before pushing:

    $ odo config set --env MAVEN_MIRROR_URL=https://my-maven-mirror/

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!

Packages

No packages published

Languages

  • Java 98.5%
  • Shell 1.1%
  • Python 0.4%