https://github.com/mgubaidullin/camel-narrative
Narrative API for Apache Camel
https://github.com/mgubaidullin/camel-narrative
apachecamel fun java
Last synced: 2 months ago
JSON representation
Narrative API for Apache Camel
- Host: GitHub
- URL: https://github.com/mgubaidullin/camel-narrative
- Owner: mgubaidullin
- License: apache-2.0
- Archived: true
- Created: 2020-04-19T14:24:29.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-11-29T22:26:01.000Z (over 1 year ago)
- Last Synced: 2025-02-16T02:44:54.404Z (4 months ago)
- Topics: apachecamel, fun, java
- Language: Java
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Narrative API for Apache Camel
This project demonstrates narrative API examples for Apache Camel.
Simple single route (Flash Fiction):
```java
Caravan.go(
Camel.from("file:input").to("file:output"));
```Route with bean binding (Short Story):
```java
Caravan.load("bale", new Bale())
.go(Camel.from("timer:start").to("bean:bale"));
```Multiple routes (Novellette):
```java
Caravan.go(
Camel.from("file:input").to("file:output"),
Camel.from("file:output").to("log:output"));
```