Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id ED26D200C73 for ; Wed, 10 May 2017 15:45:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EB899160BB4; Wed, 10 May 2017 13:45:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3DF49160BA8 for ; Wed, 10 May 2017 15:45:04 +0200 (CEST) Received: (qmail 27830 invoked by uid 500); 10 May 2017 13:44:58 -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 27819 invoked by uid 99); 10 May 2017 13:44:58 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2017 13:44:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A8776C0EE6 for ; Wed, 10 May 2017 13:44:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.487 X-Spam-Level: *** X-Spam-Status: No, score=3.487 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id GYtNb07CrZn0 for ; Wed, 10 May 2017 13:44:57 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 1204A5F36B for ; Wed, 10 May 2017 13:44:57 +0000 (UTC) Received: from static.162.255.23.22.macminivault.com (unknown [162.255.23.22]) by mwork.nabble.com (Postfix) with ESMTP id B34DC40848F47 for ; Wed, 10 May 2017 06:44:56 -0700 (MST) Date: Wed, 10 May 2017 06:44:56 -0700 (MST) From: mortalisk To: users@camel.apache.org Message-ID: <1494423896726-5799233.post@n5.nabble.com> In-Reply-To: References: <1494402376282-5799201.post@n5.nabble.com> Subject: Re: Async bean method MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Wed, 10 May 2017 13:45:05 -0000 My route: In the executor bean (only message type was changed to : It definitely seems to only run the "process" method one by one. I added a sleep in "preProcess" (which is inside the "thenApplyAsync" so it should not block the camel thread, which would make it wait for that much longer until next message would start. I would expect it to call the "process" for each item in the queue immediately. I looked at the camel code and found this line: https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/component/bean/MethodInfo.java#L324 I'm not sure if this is the code that is involved, but that would block the thread if I'm not mistaken. -- View this message in context: http://camel.465427.n5.nabble.com/Async-bean-method-tp5799201p5799233.html Sent from the Camel - Users mailing list archive at Nabble.com.