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
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.
- most-basic: One of the most basic "Hello World"-type of demos.
- simple-spring: Similar "Hello World" using Spring
- 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. - camel-properties: illustrates use of camel properties
- camel-mocks: illustrates the use of auto mocking existing endpoints
- splitter: Simple demo using xpath based splitter
- 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
- simple-ftp: Idempotent ftp consumer
- spring-bean: Shows the use of the bean component in conjunction with the Spring Registry (demo uses a unit test)
- seda-inout: Shows an netty:tcp endpoint connecting to a seda endpoint inout (for the client open a telnet session:
telnet localhost 7090
) - 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
- cxf-spring: CXF example processing JAX-WS SOAP/HTTP message to JSON/FILE (wsdl available at http://localhost:9090/demo?wsdl)
- cxfrs: CXFRS demo. Consumes/Produces XML or JSON. CURL commands available in
src/test/bash
directory - cxfbean-jaxrs; Simple cxfbean demo implementing a JAXRS services (test url http://localhost:9090/example/calc/10 )
- pipeline-processors-inout: Illustrates the behaviour of setting the
in
orout
bodies on pipeline processors (only contains a "unit test") - simple-jms: Uses invm JMS (also shows CBR to route xml and csv files)
- spring-jms Illustrates configuration of JMS in Spring
- parallelMulticast: Illustrated (parallel) multicast. A Java version is also included
- osgi-spring. This demo has its own (readme)
- blueprint Simple Camel blueprint demo with inlined route. Includes a test using mocks
- fabric-demo A camel fabric demo illustrating location transparency and load balancing. This demo has its own (readme)