You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by simafengyun <yi...@citi.com> on 2014/03/03 07:27:42 UTC

Re: how to do redelivery message

Hi,

If I can checked the null value returned in the below step, I can call it
step1, it should works.
<bean ref="processorService" method="processTest(${body})"/>

But processorService is an OSGi service. I can't check null value in this
step. So I only can check null in the below step, I can call it step2. But
if I check in the step2, the redelivery policy only try to redelivery in the
step2. But actually I want it to redelivery in the step1, what should I do?
<--logProcessor is just  used to log the returned value from service
bundle--> 
<to id="IdLogProcessor" uri="logProcessor"/>   



--
View this message in context: http://camel.465427.n5.nabble.com/how-to-do-redelivery-message-tp5748060p5748227.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: how to do redelivery message

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Just use a bean that calls the other bean. And if the return value is
null, then call the bean again - eg in a while loop etc.

On Mon, Mar 3, 2014 at 7:27 AM, simafengyun <yi...@citi.com> wrote:
> Hi,
>
> If I can checked the null value returned in the below step, I can call it
> step1, it should works.
> <bean ref="processorService" method="processTest(${body})"/>
>
> But processorService is an OSGi service. I can't check null value in this
> step. So I only can check null in the below step, I can call it step2. But
> if I check in the step2, the redelivery policy only try to redelivery in the
> step2. But actually I want it to redelivery in the step1, what should I do?
> <--logProcessor is just  used to log the returned value from service
> bundle-->
> <to id="IdLogProcessor" uri="logProcessor"/>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/how-to-do-redelivery-message-tp5748060p5748227.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Re: how to do redelivery message

Posted by Henryk Konsek <he...@gmail.com>.
> But processorService is an OSGi service. I can't check null value in this
> step.

Wrap the service in other bean or processor and let it do the check /
throw exception.

Cheers.

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com