Giter Site home page Giter Site logo

jasonxia / camel-spring Goto Github PK

View Code? Open in Web Editor NEW

This project forked from terrencemiao/camel-spring

0.0 2.0 0.0 49.1 MB

An example application that when Apache Camel meets Spring / Spring Boot

License: GNU General Public License v3.0

Shell 0.47% Java 99.53%

camel-spring's Introduction

Camel Spring

Build Status Code Coverage Docker Pulls Join%20Chat

When Camel meets Spring is a sample demonstrating how Apache Camel works with Spring Boot, with hawtio http://hawt.io/getstarted/, a modular web console let you manage, monitor your Java stuff. Check:

Development

  • Ready, Set, Go

$ $GRADLE_HOME/bin/gradle --parallel --max-workers=2 clean build

$ $GRADLE_HOME/bin/gradle bootRun

$ $GRADLE_HOME/bin/gradle bootRun --debug-jvm

$ SERVER_PORT=8081 $GRADLE_HOME/bin/gradle bootRun

$ SPRING_PROFILES_ACTIVE=default $GRADLE_HOME/bin/gradle bootRun

$ SPRING_PROFILES_ACTIVE=elk $GRADLE_HOME/bin/gradle bootRun

$ $JAVA_HOME/bin/java -jar build/libs/camel-spring-1.0-SNAPSHOT.jar

In Fish shell, run like

๐œ† env server.port=8081 $GRADLE_HOME/bin/gradle bootRun

๐œ† env spring.profiles.active=default $GRADLE_HOME/bin/gradle bootRun

๐œ† env spring.profiles.active=elk $GRADLE_HOME/bin/gradle bootRun

Zipkin Tracing

Start Open Zipkin Tracing server

$ docker run -d --name zipkin -p 9411:9411 openzipkin/zipkin

$ $GRADLE_HOME/bin/gradle bootRun

Then in Camel Spring to produce a PDF file, and go to URL: http://localhost:9411/

Zipkin Tracing console

Logging with ELK (Elastic, Logstash and Kibana)

Install and Run Elastic, Logstash and Kibana

๐œ† /usr/local/elasticsearch/bin/elasticsearch

๐œ† /usr/local/kibana/bin/kibana

๐œ† cat /usr/local/logstash/logstash-json.conf
input {
    tcp {
        port => 4560
        codec => json_lines
    }
}

output {
    elasticsearch { hosts => ["localhost:9200"] }
    stdout { codec => rubydebug }
}

๐œ† /usr/local/logstash/bin/logstash -f /usr/local/logstash/logstash-json.conf

๐œ† env spring.profiles.active=production $GRADLE_HOME/bin/gradle bootRun
Kibana Console

References

Copying

Copyright ยฉ 2016 - Terrence Miao. Free use of this software is granted under the terms of the GNU General Public License version 3 (GPLv3).

camel-spring's People

Contributors

terrencemiao avatar

Watchers

Jason Xia avatar James Cloos 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.