Skip to content

This is a test for deploying a simple Camel route on Fuse on OpenShift Online

License

Notifications You must be signed in to change notification settings

DArachchi/customer-demos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring-Boot Camel XML QuickStart

This example demonstrates how to configure Camel routes in Spring Boot via a Spring XML configuration file.

The application utilizes the Spring [@ImportResource](http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/context/annotation/ImportResource.html) annotation to load a Camel Context definition via a [camel-context.xml](src/main/resources/spring/camel-context.xml) file on the classpath.

Important
This quickstart can run in 2 modes: standalone on your machine and on Kubernetes / OpenShift Cluster

Building

The example can be built with

mvn clean install

Running the Quickstart standalone on your machine

You can also run this booster as a standalone project directly:

Obtain the project and enter the project’s directory Build the project:

$ mvn clean package
$ mvn spring-boot:run

Running the Quickstart on Kubernetese / OpenShift Cluster

Following steps assume you already have a Kubernetes / OpenShift environment installed and relative tools like oc / kubectl. If you have a single-node Kubernetes / OpenShift cluster, such as Minikube / Minishift, you can also deploy your quickstart there. A single-node Kubernetes / OpenShift cluster provides you with access to a cloud environment that is similar to a production environment.

  1. Log in and create your project / namespace:

    $ oc login -u developer -p developer
    $ oc new-project MY_PROJECT_NAME

    or

    $ kubectl create namespace MY_PROJECT_NAME
  2. Build and deploy the project to the Kubernetes / OpenShift cluster:

    $ mvn clean -DskipTests fabric8:deploy -Popenshift

About

This is a test for deploying a simple Camel route on Fuse on OpenShift Online

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages