Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 37FC011278 for ; Mon, 30 Jun 2014 15:28:56 +0000 (UTC) Received: (qmail 17726 invoked by uid 500); 30 Jun 2014 15:28:55 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 17671 invoked by uid 500); 30 Jun 2014 15:28:55 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 17654 invoked by uid 99); 30 Jun 2014 15:28:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jun 2014 15:28:55 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.223.172 as permitted sender) Received: from [209.85.223.172] (HELO mail-ie0-f172.google.com) (209.85.223.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jun 2014 15:28:54 +0000 Received: by mail-ie0-f172.google.com with SMTP id lx4so7031700iec.3 for ; Mon, 30 Jun 2014 08:28:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=BVBn6H8JcbmJXwm7Q1KAJGo/FU9KSXsseyzQ29DkasU=; b=UyuFK+nqkPAp17Utmkyo7qWE2wK0drbC92G2mUA1BD769t0CxfCoULYCSTMjQm3Ptr qXSBAAEYkW66HsLYT9FV1mmM5f/psT3PBGpmd5R/smVy7yTpcnaXdJqwiSIJnNuO/L60 eZ1x7wtalPi8rFHb4P2Ybmy/vup2H7duS0PNydVcUlZgU0sp0QCXOi52JyUZZJLp0IPY J/0OGzGOc9Ea4lUs89gaSPkUKcR3iNhjKJKZR9nHUnUwZ3HAkXhwriE5uMJ1FFb35ap+ FtnyER9u4F42wUFcbWZ4XqTngqjLat+LlOyTdvJoPJsMYzDHkDf/3Pwo+Y//vuG/XmEp F6iw== X-Received: by 10.50.142.99 with SMTP id rv3mr33660184igb.48.1404142107481; Mon, 30 Jun 2014 08:28:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.7.194 with HTTP; Mon, 30 Jun 2014 08:28:07 -0700 (PDT) In-Reply-To: <1404140152981-5753057.post@n5.nabble.com> References: <1404140152981-5753057.post@n5.nabble.com> From: Claus Ibsen Date: Mon, 30 Jun 2014 17:28:07 +0200 Message-ID: Subject: Re: Asynchronous delay in camel route To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hi Yeah its likely the consumer on the SY end, or whatever the original Camel consumer is does not support async routing. http://camel.apache.org/asynchronous-processing.html http://camel.apache.org/asynchronous-routing-engine.html On Mon, Jun 30, 2014 at 4:55 PM, vinodhvp wrote: > > Hi, > > I am working on a switchyard project. > We have a requirement to add message to a delayed Queue. > I used the following code snippet in camel route to post the message to the > Queue. > > from("switchyard://MyOwnCamelRoute") > .delay(10000).asyncDelayed() > .log("Received message for 'MyOwnCamelRoute' : ${body}") > .to("jms:MyQueue?connectionFactory=java:/ConnectionFactory") > > The message is getting placed in the Queue only after the delay. > But the issue is that the call is not asynchronous. > The control comes back only after the delay. > Am I missing something here? > Please help. > > Thanks > Anand > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Asynchronous-delay-in-camel-route-tp5753057.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cibsen@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/