Integrates the Apache Camel Integration Framework with Grails.
Groovy Java
Switch branches/tags
Nothing to show
Pull request Compare This branch is 71 commits ahead of cnavta:master.
Latest commit a4894f3 Sep 29, 2009 @alkemist Added missing brace to DSL example.
(Thanks Bob!)
Permalink
Failed to load latest commit information.
.settings
grails-app
lib
scripts
src
test
web-app/WEB-INF
.classpath
.gitignore
.project
Camel.tmproj
CamelGrailsPlugin.groovy
README
application.properties

README

Apache Camel Grails Plugin

This plugin provides integration with Apache Camel (http://camel.apache.org). It features a service for sending messages, and a Groovy DSL for defining routes.

Here is an example route…

[Java]

errorHandler(deadLetterChannel("mock:error"));

from("seda:a").choice().when(header("foo").isEqualTo("bar")).to("seda:b")
    .when(header("foo").isEqualTo("cheese")).to("seda:c").otherwise().to("seda:d");

[Groovy]

errorHandler deadLetterChannel("mock:error")

"seda:a" {
	choice {
		when { in.header.foo == "bar" } {
			to "seda:b"
		}
		when { in.header.foo == "cheese" } {
			to "seda.c"
		}
		otherwise {
			to "seda:d"
		}
	} 
}