Sunday, September 9, 2012

LoggingErrorHandler support in Camel Scala DSL

Scala DSL for Camel is a little behind its older brother.

I submitted a patch to Camel Scala module, so starting from the Camel 2.10, Scala DSL supports loggingErrorHandler as well as the Java DSL does.
"jms:in"
errorHandler(loggingErrorHandler.level(LoggingLevel.INFO).logName("com.example.MyLogger")) 
to "jms:out"

And yeah, I also find Scala Camel syntax even more sexy than Java version. :)

No comments:

Post a Comment