Skip to content

ldaley/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

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Groovy 88.8%
  • Java 11.2%