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 1BD06DB08 for ; Thu, 7 Mar 2013 15:06:36 +0000 (UTC) Received: (qmail 96172 invoked by uid 500); 7 Mar 2013 15:06:35 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 96132 invoked by uid 500); 7 Mar 2013 15:06:35 -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 96122 invoked by uid 99); 7 Mar 2013 15:06:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Mar 2013 15:06:35 +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.177 as permitted sender) Received: from [209.85.223.177] (HELO mail-ie0-f177.google.com) (209.85.223.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Mar 2013 15:06:30 +0000 Received: by mail-ie0-f177.google.com with SMTP id 16so658128iea.36 for ; Thu, 07 Mar 2013 07:06:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=MZzkptis1GeZKgryDwHP6nnuRZtga+w1Z6NlNWfNAJ4=; b=KL/vYjE4I72izHnSafZlu95NgIZyDGBlS3tdDrBtIiHlUgqk+5IhCE3Wtp3KZ6prs/ Jam0ftxp2iwI+Ppq31Nq1WSs7Vz+qtM4Qh8nV+QSdHm3/moID+tZkYGAdqepiae0N0Kt 2M2GvjggWIeLWiCsVs/3HTbHrbpGbTDg+mgFNl/fU7/A3H/A69VDJa9JT31bKs3xD9Xn 2hBVGSuz2BH30aIXXKlYzA2IrD64U1ojsxcYYMw0oo6/Dj8rmSkwT/VEp/hi+KCmAcJS s9SjASPuvIIW8lCfJOiBLW/ayBAhaVQT5HNUqQXNV+RjZys+97f7z8ZPXfhKP1d+g+Or dWHQ== X-Received: by 10.50.181.136 with SMTP id dw8mr14804199igc.39.1362668769150; Thu, 07 Mar 2013 07:06:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.53.232 with HTTP; Thu, 7 Mar 2013 07:05:49 -0800 (PST) In-Reply-To: <1362667321753-5728765.post@n5.nabble.com> References: <1362667321753-5728765.post@n5.nabble.com> From: Claus Ibsen Date: Thu, 7 Mar 2013 16:05:49 +0100 Message-ID: Subject: Re: How to get response from activeMQ when a message is put on queue? To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Mar 7, 2013 at 3:42 PM, jrpedersen wrote: > Hi, > I am trying to use Camel (mina, jms) where I receive messages on a tcp port, > using mina, and decode the message before it is put on a activemq queue. > I want to send a ack on tcp if the message is succesfully added to the queue > or a nack if not. > > use this route: > > > uri=mina:tcp//localhost:6000?textline=false&sync=true&codec=#myCodec" > /> > > > > This gives org.apache.camel.ExchangeTimedOutException: The OUT message was > not received within: 20000 milli... > > How should I get jms to send a answer that the mesage is sucessfully qued? > If you want to only send the message on the queue in a fire and forget fashion (eg InOnly) then read about the event message EIP pattern http://camel.apache.org/event-message.html What you current have is request-reply, because you have configured the mina endpoint to be sync=true. http://camel.apache.org/request-reply.html > br > JR > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/How-to-get-response-from-activeMQ-when-a-message-is-put-on-queue-tp5728765.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cibsen@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen