Multicast with two endpoints when request to the second depends on the response from the first one

2013-08-06 Thread mateo
Hi all, I need to send synchronously two different messages to two different endpoints but before I can create second request I need first get response from the first endpoint. I have tried to use multicast pattern but there is separate exchange created for each outcome so I cannot communicate

Re: Multicast with two endpoints when request to the second depends on the response from the first one

2013-08-06 Thread Christian Posta
You don't need multicast for this. Just use to(endpoint).to(endpoint) On Tue, Aug 6, 2013 at 8:45 AM, mateo mateo.nowi...@gmail.com wrote: Hi all, I need to send synchronously two different messages to two different endpoints but before I can create second request I need first get

Re: Multicast with two endpoints when request to the second depends on the response from the first one

2013-08-06 Thread mateo
But to create request for ENDPOINT2 I need two things: original request (the one which was on Exchange while entering multicast) and response from ENDPOINT1. And doing this in proposed way I will lost request information (in Exchange in out there will be only response from ENDPOINT1). -- View

Re: Multicast with two endpoints when request to the second depends on the response from the first one

2013-08-06 Thread Willem jiang
Hi I think you can just define the route like this. from(xxx) .to(ENDPOINT1) .process(prepare request) .to(ENDPOINT2) -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com

Re: Multicast with two endpoints when request to the second depends on the response from the first one

2013-08-06 Thread Claus Ibsen
Christian is right - the multicast EIP is not sutiable here. See for example the content enricher eip. On Tue, Aug 6, 2013 at 9:56 PM, mateo mateo.nowi...@gmail.com wrote: But to create request for ENDPOINT2 I need two things: original request (the one which was on Exchange while entering