Quantcast

Matching the Request and reply

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Matching the Request and reply

pochadri
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Matching the Request and reply

Taariq Levack
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 <[hidden email]> 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.
>
Loading...