camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Muhammad Ichsan <>
Subject What best way for correlated message?
Date Mon, 08 Feb 2010 15:36:50 GMT
Dear All,

I have a class which send a request message and also read a response
message through socket. I want to add it into my camel. What's the
best option? I'm considering implement this (to be invoked through
@return String The response
public String executeMessage(String request);

This is a blocking method which send a request and set correlation key
into it and associate the request message later with the response
message using the same correlation key.

Or... do you have any better options? Like asynchronous call and receive?


~The best men are men who benefit to others

Yang berkualitas memang beda rasanya!

View raw message