There is a request reply on camel currentIly exisintg. I don't know if I
should use
ExchangePattern.InOut or exchangepattern.inonly.

My replier thread is another thread... how can I tell this thread to wait
while its result hasnot yet arrived.

>From other implementations I see that they use the

object.wait();

Then use a notify() to signal that the object has its reply already

Does camel provide this implementation?

On Fri, Apr 24, 2009 at 12:58 AM, Carlo Camerino <cmcamer...@gmail.com>wrote:

> Hi,
>
> I have a single tcp port in which I can connect to and I have a lot of
> messages coming in.
> WHat pattern should I use so that I can send messages to the port without
> making my implementation synchronized.
>
> How can I make my threads wait while waiting for its reply at the same time
> know that its reply has arrive?
>
> Before what we used to do is make the method synchronized, but this time
> around, we would like to have a thread
> polling for replies that are arriving...
>
> What is the best way to handle this?
> Thanks
> Is It Correlation Identifier, Polling Consumer, etc...?
> One thing I'm not sure is how to make my threads wait
>
> Carlo
>

Reply via email to