GithubHelp home page GithubHelp logo

smokedoc / war-camel-servlet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fabric8-quickstarts/war-camel-servlet

0.0 2.0 0.0 101 KB

a quickstart using a WAR with camel and servlets

HTML 100.00%

war-camel-servlet's Introduction

War Camel Servlet

This example demonstrates how you can use Servlet to expose a http service in a Camel route, and run that in a servlet container such as Apache Tomcat.

The Camel route is illustrated in the figure below. The servlet:hello endpoint is listening for HTTP requests, and being routed using the Content Based Router.

Camel Servlet diagram

The request is being routed whether or not there is a HTTP query parameter with the name name. This is best illustrated as in the figure below, where we are running this quickstart. The first attempt there is no name parameter, and Camel returns a message that explains to the user, to add the parameter. In the send attempt we provide ?name=fabric in the HTTP url, and Camel responses with a greeting message.

Camel Servlet try

Building this example

Building and running this quickstart consists of a single steps:

Building

Run the following:

mvn fabric8:run

then click the URL you see in the output log

war-camel-servlet's People

Contributors

davsclaus avatar fusesource-ci avatar jstrachan avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.