You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by pochadri <po...@gmail.com> on 2011/09/16 11:57:00 UTC
Matching the Request and reply
Can somebody please guide me on creating the route with the following
requirements
1. A request is sent over tcp to outside server
2. Reply can come any time later and there is no gaurantee the replies would
be in the same order as requests were sent
3. Request then need to be matched with response and and combined response
message need to be sent to to the caller of the request.
Thanks for your help
Regards
Pochadri
--
View this message in context: http://camel.465427.n5.nabble.com/Matching-the-Request-and-reply-tp4810150p4810150.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Matching the Request and reply
Posted by Taariq Levack <ta...@gmail.com>.
Hi
You can add a correlation ID to the request, then use that ID to
aggregate[1] the request and response.
[1]http://camel.apache.org/aggregator2.html
Taariq
On Fri, Sep 16, 2011 at 11:57 AM, pochadri <po...@gmail.com> wrote:
> Can somebody please guide me on creating the route with the following
> requirements
>
> 1. A request is sent over tcp to outside server
> 2. Reply can come any time later and there is no gaurantee the replies
> would
> be in the same order as requests were sent
> 3. Request then need to be matched with response and and combined response
> message need to be sent to to the caller of the request.
>
>
> Thanks for your help
>
> Regards
> Pochadri
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Matching-the-Request-and-reply-tp4810150p4810150.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>