...
API in Groovy Renderer
renderRoute
RenderRoute can receive handles a route instance and parse at a time. You can use it to render revert a DSL representing the route definition in fluent Java DSLroute for review or modification.
renderRoutes
RenderRoutes can handle a collection of routes at a time. You can obtain the route list from CamelContext and then use renderRoutes to revert them for review or modification.get a overview of all the route definitions by using renderRoutes method.
Web Console Editor
Through Web Console, you can view and edit the route. The following page lists all the routes configured in Camel Context.
By clicking the route id, you are redirected to the route view page. On this page, XML configuration is presented for view, and you can edit the route in XML or groovy.
Following gives the route editor page. You can edit the route in XML or groovy in current version.
Guide for more DSLs
...
Supported DSLs
- aggregate
- aop
- beanRef
- choice
- convertBody
- deadLetter
- delay
- doTry...doCatch...doFinally
- enrich
- filter
- from
- idempotentConsumer
- intercept
- interceptFrom
- interceptSendToEndpoint
- loadBalance
- loop
- marshal
- onCompletion
- onException
- pipeline
- policy
- pollEnrich: aggregationStrategy can't be supported
- processRef
- recipientList
- removeHeader
- removeProperty
- resequence
- routeSlip
- setBody
- setExchangePattern
- setHeader
- setProperty
- sort
- split
- stop
- threads
- throttle
- to
- transacted
- transform
- wireTap
- xPath
You should read the Enterprise Integration Patterns for usage of these DSLs.
Un-supported DSLs
- bean
- doTry...doCatch...doFinally
- process
- validation
...
- , you may use beanRef instead.
- process, you may use processRef instead. Content Based Routing on Camel presents how to use the processRef on camel web project.
Unsupported Groovy DSL Features on Web Console gives a more detailed explaination on it.
Some samples and tutorial
Content Based Routing on Camel
Load Balance for existing Messaging Service
You may want to get a bundle of DSLs for quick look on this page: DSL samples
Unsupported Groovy DSL Features on Web Console