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 4B0AD101EB for ; Tue, 7 Jan 2014 06:00:15 +0000 (UTC) Received: (qmail 75370 invoked by uid 500); 7 Jan 2014 05:59:25 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 75305 invoked by uid 500); 7 Jan 2014 05:59:18 -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 73972 invoked by uid 99); 7 Jan 2014 05:59:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jan 2014 05:59:16 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of roman.janulek@gmail.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jan 2014 05:59:10 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1W0Pgg-0001UO-7D for users@camel.apache.org; Mon, 06 Jan 2014 21:58:50 -0800 Date: Mon, 6 Jan 2014 21:58:50 -0800 (PST) From: jamalissimo To: users@camel.apache.org Message-ID: <1389074329508-5745652.post@n5.nabble.com> Subject: ActiveMQ processing MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello guys, I am quite new to whole activeMQ thing, but here is the thing. I have this route which works ok, but my problem is that I have to wait till "activemq:queue:users.add" route ends and then get result. I want it to work in background. I simply need to send request to add user and immediately receive response that it was added in the queue and is being processed from("direct:addUsers") .setHeader("group", method("usersBean", "getGroup")) .to("activemq:queue:users.add") .to("bean:response?method=getResponse"); I am using Karaf 2.3.1 and Camel 2.11.0 Thanks for help -Roman -- View this message in context: http://camel.465427.n5.nabble.com/ActiveMQ-processing-tp5745652.html Sent from the Camel - Users mailing list archive at Nabble.com.