Skip to content
Integrates the Apache Camel Integration Framework with Grails.
Groovy Java
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
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"
		}
	} 
}
Something went wrong with that request. Please try again.