You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by contactreji <co...@gmail.com> on 2014/08/14 14:47:17 UTC

RecepientList - Individual Target status

Hi Camel Riders

I am using camel recepientList EIP for dynamic target system determination. 

Route as follows

<route>
  <from uri="direct:a" />
  
  <recipientList delimiter="#">
    <header>listOfTargetSystems</header>
  </recipientList>
</route>


Just wanted to know *if there is a way I can track the one which was
successfull and the one which failed*. Is there a way to do that from this
EIP? I would rather need this for reporting unavailable target systems or
invokation failure and componse a re-try mechanisms.




--
View this message in context: http://camel.465427.n5.nabble.com/RecepientList-Individual-Target-status-tp5755211.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: RecepientList - Individual Target status

Posted by contactreji <co...@gmail.com>.
Hi Claus

That was amazing. Thanks a lot.

It was populated in the exchange header called *CamelFailureEndpoint*. It
was mapped to the constant you mentioned in ur reply "FAILURE_ENDPOINT"

Cheers
Reji



--
View this message in context: http://camel.465427.n5.nabble.com/RecepientList-Individual-Target-status-tp5755211p5755252.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: RecepientList - Individual Target status

Posted by Claus Ibsen <cl...@gmail.com>.
The exchange contains a property with the failure endpoint
http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Exchange.html#FAILURE_ENDPOINT

And you can use an aggregation strategy on the recipient list to
handle when the recipients are done.

Some details at
http://camel.apache.org/recipient-list.html


On Thu, Aug 14, 2014 at 2:47 PM, contactreji <co...@gmail.com> wrote:
> Hi Camel Riders
>
> I am using camel recepientList EIP for dynamic target system determination.
>
> Route as follows
>
> <route>
>   <from uri="direct:a" />
>
>   <recipientList delimiter="#">
>     <header>listOfTargetSystems</header>
>   </recipientList>
> </route>
>
>
> Just wanted to know *if there is a way I can track the one which was
> successfull and the one which failed*. Is there a way to do that from this
> EIP? I would rather need this for reporting unavailable target systems or
> invokation failure and componse a re-try mechanisms.
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/RecepientList-Individual-Target-status-tp5755211.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
hawtio: http://hawt.io/
fabric8: http://fabric8.io/