camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samuel Cox <crankydi...@gmail.com>
Subject When/Otherwise & multiple 'statements'
Date Fri, 21 Jan 2011 12:11:31 GMT
Hi,

I have the following Scala DSL route defined:

when (...) {
   process(...)
   --> (...)
   --> (...)
} otherwise {
   process(...)
   --> (...)
}

For various reasons, I need to implement this with a Java DSL route,
but I can't figure out how to nest multiple statements.  All the
examples I see are of this form:

when(...)
.to(...)
.otherwise()
.to(...)

Any ideas or pointers towards doc that would help me implement this
with a Java DSL would be greatly appreciated.

Mime
View raw message