8000 GitHub - ctoomey/camel-demos: Organising my Scala camel demos which are scattered over my hard drive, plus unifying them into a consistent set of demos
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Organising my Scala camel demos which are scattered over my hard drive, plus unifying them into a consistent set of demos

Notifications You must be signed in to change notification settings

ctoomey/camel-demos

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

camel-demos

Organising my camel demos which are scattered over my hard drive, plus unifying them into a consistent set of demos.

You will need to install SBT 0.13

Example illustrating how to run a project (example uses most-basic project)

$ me@mylinux:camel-demos> sbt
Loading ...
[info] ...
...
> project most-basic
[info] Set current project to most-basic ...
> run
[info] Compiling 2 Scala sources to ...
[info] Running demo.basic.FileDemo
[info] ...
[info] 11:16:46,227 INFO  route1  - received file file1.xml

Jolokia and Hawtio

When running from sbt the jolokia JVM agent is enabled. Use either a standalone hawtio or use the Chrome plugin to connect with the running process.

List of demos

  1. most-basic: One of the most basic "Hello World"-type of demos.
  2. simple-spring: Similar "Hello World" using Spring
  3. core-camel: Similar to most-basic, but shows the default single-thread behaviour (tip surround the steps in threads(5) { ... }) or add ?concurrentConsumers=5 to teh URI and includes a unit test.
  4. camel-properties: illustrates use of camel properties
  5. camel-mocks: illustrates the use of auto mocking existing endpoints
  6. splitter: Simple demo using xpath based splitter
  7. aggregator: Aggregates an XML message. There is also a Java implementation of the same route, just change the Spring configuration to use the Java equivalent
  8. simple-ftp: Idempotent ftp consumer
  9. spring-bean: Shows the use of the bean component in conjunction with the Spring Registry (demo uses a unit test)
  10. seda-inout: Shows an netty:tcp endpoint connecting to a seda endpoint inout (for the client open a telnet session: telnet localhost 7090)
  11. jetty-http: Simple http endpoint, use for example curl to send data:
    me@my-linux> curl -H "Content-Type: text/plain" --data "hello"  http://localhost:9090/myapp/myservice
  1. cxf-spring: CXF example processing JAX-WS SOAP/HTTP message to JSON/FILE (wsdl available at http://localhost:9090/demo?wsdl)
  2. cxfrs: CXFRS demo. Consumes/Produces XML or JSON. CURL commands available in src/test/bash directory
  3. cxfbean-jaxrs; Simple cxfbean demo implementing a JAXRS services (test url http://localhost:9090/example/calc/10 )
  4. pipeline-processors-inout: Illustrates the behaviour of setting the in or out bodies on pipeline processors (only contains a "unit test")
  5. simple-jms: Uses invm JMS (also shows CBR to route xml and csv files)
  6. spring-jms Illustrates configuration of JMS in Spring
  7. parallelMulticast: Illustrated (parallel) multicast. A Java version is also included
  8. osgi-spring. This demo has its own (readme)
  9. blueprint Simple Camel blueprint demo with inlined route. Includes a test using mocks
  10. fabric-demo A camel fabric demo illustrating location transparency and load balancing. This demo has its own (readme)

About

Organising my Scala camel demos which are scattered over my hard drive, plus unifying them into a consistent set of demos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 94.0%
  • Java 5.1%
  • 2B6A Shell 0.9%
0