Skip to content

Integrates the Apache Camel Integration Framework with Grails.

Notifications You must be signed in to change notification settings

jrobens/apache-camel-grails-plugin

 
 

Repository files navigation

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"
		}
	} 
}

About

Integrates the Apache Camel Integration Framework with Grails.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published