I should have been more specific.
I need to know how to do this with Camel 1.6.0.
It complains:
"error: value maximumRedeliveries is not a member of
org.apache.camel.scala.dsl.SAbstractType"
I've tried looking through the Camel-Scala code, but I can't figure it out.
--
crankydillo
Gert Vanthienen wrote:
L.S.,
The relevant unit test with the examples is in
http://svn.apache.org/viewvc/camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/OnExceptionTest.scala?view=markup
The errorhandling clause you're looking for will look something like
handle[Throwable].maximumRedeliveries(0).handled
Regards,
Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/
On 29 January 2010 07:15, Claus Ibsen <[email protected]> wrote:
Hi
On Thu, Jan 28, 2010 at 10:54 PM, crankydillo <[email protected]> wrote:
I need to do the Scala equivalent of:
onException(Throwable.class).maximumRedeliveries(0).handled(true).end()
Would someone be able to provide this? Thanks.
I assume you have looked in the unit test source code for camel-scala?
Thanks.
--
crankydillo
--
Claus Ibsen
Apache Camel Committer
Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus