Hi Yeah using the org.apache.camel.PollingConsumer - it can block until a message arrives, or until a given timeout.
It requires however that you use the Camel API a bit to use it instead of the route or producer template. We have a sample of this with the FTP component where it will wait until there is a file to download http://activemq.apache.org/camel/ftp.html On Thu, Jan 8, 2009 at 6:33 PM, mta38 <mtaraud....@orange-ftgroup.com> wrote: > > Hi all, > Is there a way to do a request/reply request in a thread? > In fact in my thread I create a request and I want to send this request to a > camel route (via a camel context) and I want to be "blocked" until I receive > the response. > Is someone having an idea? > Best regards > Mta38 > > -- > View this message in context: > http://www.nabble.com/Thread-%2C-Request-Response-tp21356633s22882p21356633.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- /Claus Ibsen Apache Camel Committer Blog: http://davsclaus.blogspot.com/