/camelarius

The holy grail of Apache Camel DSLs in Clojure

Primary LanguageClojureEclipse Public License 1.0EPL-1.0

#Camelarius

Forked from https://github.com/clumsyjedi/clj-camel-holygrail

"The holy grail of Apache Camel DSLs in Clojure"

Camelarius (Latin) 'camel driver'

Copyright © clumsyjedi (Frazer Irving), xulfus (Janne Haarni)

Distributed under the Eclipse Public License.

Rationale

Apache Camel is awesome. Clojure is awesome. Together they are double awesomeness.

Usage

Latest version:

Clojars Project

Include in your project.clj:

(ns my.awesome.camel-project
  :dependencies [[org.clojure/clojure "1.6.0"]
                 [camelarius "0.4.1"]])

Basic routing:

(let [context (make-context)]
  (defroute context
    (from "seda:source")
    (to "mock:dest"))

  ((make-producer context) "seda:source" "body"))

See the tests for more examples. Also some stuff in the wiki.