camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen" <claus.ib...@gmail.com>
Subject Re: Exception handling, for InOut exchanges?
Date Wed, 26 Nov 2008 10:45:26 GMT
Hi

I have added a sample how to send a response back to the client

http://cwiki.apache.org/confluence/display/CAMEL/Exception+Clause
Section: Handling and sending a fixed response back to the client



/Claus Ibsen
Apache Camel Committer
Blog: http://davsclaus.blogspot.com/



On Tue, Nov 25, 2008 at 9:34 AM, Trevv <456@safe-mail.net> wrote:
>
>
> Claus Ibsen-2 wrote:
>> BTW: As I am interesting in improving the documentation could you
>> maybe help me out here. On which page/section on the wiki would you
>> expect a sample for in out style?
> Possibly http://activemq.apache.org/camel/exception-clause.html .
>
> The problem was that all the exception handling examples, on that page
> and on other pages, end with '.to("some endpoint")' to specify where
> the failure responses will go; I didn't know what endpoint I could put
> inside the '.to("")' in order to get the failure responses to go back
> to the same consumer that originally created the exchange.
>
> It took a few days to realize that I could omit the ".to()" and replace
> it with a ".handled()" and a ".transform()" to get the right behavior.
> --
> View this message in context:
http://www.nabble.com/HttpProducer%3A-how-to-access-the-body-of-an-error-page--tp20475651s22882p20677003.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message