Hi

Do you want the message to be moved to that AMQ destination if there
is an exception?
If so you need to add .handled(true) to the .onException to signal
that you are handling the exception.

On Thu, Aug 20, 2009 at 8:04 PM, boday<[email protected]> wrote:
>
> I have a simple Camel route with a simple onException() clause...
>
>      onException(NoHandlerException.class).
>
> maximumRedeliveries(0).to("activemq:NFNoHandlerException");
>
>        from("activemq:GatewayMsgQueue")
>        .convertBodyTo(DOMSource.class)
>        .to("jbi:service:http://www.test.com/eda/messageProcessor?mep=in-out";)
>        .convertBodyTo(String.class)
>        .process(new MessageProcessorResultHandler())
>        .to("activemq:topic:PortalTopic");
>
> the JBI service "messageProcessor" throws a NoHandlerException, but it isn't
> being caught by the exception handling, instead I get this message...
>
> On delivery attempt: 0 caught:
> com.test.eda.messageprocessor.messagehandler.exceptions.NoHandlerException:
> no handler found for
> message
>
> Why can't Camel find my exception that was registered in the onException()
> method?
>
> I'm using SMX 3.3.1/Camel 1.6.1...
>
> thanks...
>
>
> -----
> Ben - Senior Consultant
>
> --
> View this message in context: 
> http://www.nabble.com/SMX-Camel---no-handler-found-for-message-tp25067044p25067044.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to