|
DSL has been edited by Claus Ibsen (Apr 27, 2009). Content:Java DSLCamel uses a Java Domain Specific Language or DSL for creating Enterprise Integration Patterns or Routes. Camel also supports a Spring based XML configuration as well as a Scala DSL. The benefits of using the Java DSL is that your IDE can smart complete your code as you start typing, rather than having to mess around with buckets of XML. The Java DSL is also very expressive as you can mix and match your own code within the language for _expression_ or Predicate evaluations or easily add a custom Processor. The main entry points for the DSL are
Handling errorsYou can handle errors in a number of ways such as:
Camel uses a strategy to resolve how exceptions should be handled. Using try ... catch ... finallyUsing InterceptorsSee Intercept See AlsoFor more examples of the DSL in action see |
Unsubscribe or edit your notifications preferences
