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:
-
JDK 1.8, http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
-
Gradle latest version, http://gradle.org
-
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
-
View via Hawtio console, go to URL: http://localhost:8080/hawtio/index.html
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/
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
-
Start Spring Boot project with Spring Initializer, https://start.spring.io/
-
Enterprise Integration Patterns by Apache Camel, http://camel.apache.org/enterprise-integration-patterns.html
-
Hawtio - a modular web console for managing Java stuff, http://hawt.io/
-
AsciiDoc Syntax Quick Reference, http://asciidoctor.org/docs/asciidoc-syntax-quick-reference
-
Travis CI AWS CodeDeploy, https://docs.travis-ci.com/user/deployment/codedeploy/
-
Create an Application with AWS CodeDeploy, http://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-create-application.html
-
Install and config Redis on Mac OS X via Homebrew, https://medium.com/@petehouston/install-and-config-redis-on-mac-os-x-via-homebrew-eb8df9a4f298
-
Apache Redis Component, http://camel.apache.org/redis.html
-
Apache Camel meets Redis, https://www.javacodegeeks.com/2013/03/apache-camel-meets-redis.html
-
Redis Cheatsheet, http://lzone.de/cheat-sheet/Redis