Armand
Armand

Reputation: 24383

Creating Camel routes at runtime in Grails

The Grails routing plugin makes creating Apache Camel routes at compile-time trivial. Is there a way to create new routes at runtime?

Upvotes: 1

Views: 1828

Answers (1)

Claus Ibsen
Claus Ibsen

Reputation: 55555

Camel has API for creating and adding routes at runtime.

For example loading routes from XML http://camel.apache.org/loading-routes-from-xml-files.html

And you can also use the API from the model package or use a RouteBuilder instance and define your routes. Then just use the API on CamelContext to add routes.

Upvotes: 2

Related Questions