Thanks Raul.
The step I missed was setting handled to true. I will try that one

Bilgin

On 2 November 2012 23:19, Raul Kripalani <r...@evosent.com> wrote:

> Have you tried using an onException block that captures
> java.lang.Exception, setting handled to true? That should clear the
> exception, and to the SQS consumer it will seem as if nothing special had
> happened.
>
> Sent from a mobile device
> On 2 Nov 2012 22:48, "Bilgin Ibryam" <bibr...@gmail.com> wrote:
>
> > Hi all,
> >
> > I need to read and remove messages from SQS queue even when there are
> > exceptions during the processing in the camel route.
> > Currently camel will leave the message in SQS if there were exceptions
> > during the processing.
> >
> > Any suggestions how to achieve that? I guess I have to use some error
> > handler or find another way to remove messages cause exception from SQS.
> >
> > thanks in advance
> > Bilgin
> >
>

Reply via email to