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 71BF617CFC for ; Mon, 8 Jun 2015 09:27:22 +0000 (UTC) Received: (qmail 77556 invoked by uid 500); 8 Jun 2015 09:27:22 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 77510 invoked by uid 500); 8 Jun 2015 09:27:22 -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 77498 invoked by uid 99); 8 Jun 2015 09:27:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Jun 2015 09:27:21 +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.176 as permitted sender) Received: from [209.85.223.176] (HELO mail-ie0-f176.google.com) (209.85.223.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Jun 2015 09:25:08 +0000 Received: by iebmu5 with SMTP id mu5so58688103ieb.1 for ; Mon, 08 Jun 2015 02:26:56 -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=yMwaAGFRisNh0iV2rRxr/WUk11yp2Ttf9vLjL9ITHik=; b=j9AoiF9CXkX2ontUP9DCr88UQBFUOv26k4IcQHySalJLY6L+T5xknOgajtMD8/46tU 7bDObiqkujLNa+D3BlH8RpwQqlcI2tGMfB2/SeQtN+ExWxM8v89j7hHQBq+5e18I+E8w +fpm894gePEhYU/ggwrmddubUL4bBNeTb5wFh1UAozVwOruTSfedmKVGqvpPPKgewlPN iBVhYyUZyNtMqxPI/KI0DryXcn8z8K72SCBFNfbON9gIzLo5V5uTyJwyoIWUE1OokSE2 NArab1ugmYP8SRJ7DaTpcmb4NwGWkEe93jB2Roy28dUN13/HJ84hq6ylk2mMY1QIMB4L DQ6g== X-Received: by 10.50.73.169 with SMTP id m9mr12069555igv.37.1433755615598; Mon, 08 Jun 2015 02:26:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.120.155 with HTTP; Mon, 8 Jun 2015 02:26:35 -0700 (PDT) In-Reply-To: <1433755191820-5767964.post@n5.nabble.com> References: <1433516561343-5767915.post@n5.nabble.com> <1433755191820-5767964.post@n5.nabble.com> From: Claus Ibsen Date: Mon, 8 Jun 2015 11:26:35 +0200 Message-ID: Subject: Re: Netty component and acknowledgement message To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hi See this FAQ http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html On Mon, Jun 8, 2015 at 11:19 AM, s.marjanovic wrote: > Hello Claus, > > Thanks for the suggestion, setting the exchange pattern to InOut helped with > the timeout issue. Great tip allaround, wasn't aware of the possibility to > explicitly influence the MEP type of the exchange, thanks. > > Got another problem though, I'm putting the acknowledgement messages I > mentioned into Out part of the exchange (exchange.getOut().setBody("ACK") > in myRoutePolicy.onExchangeDone()) expecting that is the proper way to make > a route send a response for the incoming messages. Partly, I think it's > working. These do appear in the logs: > > Route2 log: > Channel: [id: 0x9c1f061a, /127.0.0.1:52671 => /127.0.0.1:9010] writing body: > Nak > > Route1 log: > Channel: [id: 0xb32b3cf5, /127.0.0.1:52671 => localhost/127.0.0.1:9010] > received body: Nak > > Looking at this, I see that netty endpoint from Route 1 received body "Nak". > > But the "Nak" message also ends up on "myQueue" which is wrong for my > usecase. How can I make it stop getting routed to "myQueue" and keep the > rest of the behavior? > > Regards, > Slavisa > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Netty-component-and-acknowledgement-message-tp5767915p5767964.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/