From users-return-67086-archive-asf-public=cust-asf.ponee.io@camel.apache.org Tue Feb 27 13:15:09 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id EAEDA180651 for ; Tue, 27 Feb 2018 13:15:08 +0100 (CET) Received: (qmail 23389 invoked by uid 500); 27 Feb 2018 12:15:02 -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 23377 invoked by uid 99); 27 Feb 2018 12:15:02 -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; Tue, 27 Feb 2018 12:15:02 +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 A42EAC077A for ; Tue, 27 Feb 2018 12:15:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.821 X-Spam-Level: X-Spam-Status: No, score=-0.821 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 1d4ZLGdRwKeE for ; Tue, 27 Feb 2018 12:15:00 +0000 (UTC) Received: from mail-qt0-f179.google.com (mail-qt0-f179.google.com [209.85.216.179]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id C64D45F175 for ; Tue, 27 Feb 2018 12:14:59 +0000 (UTC) Received: by mail-qt0-f179.google.com with SMTP id f4so22813521qtj.6 for ; Tue, 27 Feb 2018 04:14:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=B2FJnuOSg3y87ZLQF6yLbq4VaCVP6tNd1MKxXPgIEGM=; b=a32yiHxFsf7xHafu4OKI5qTVcELO4y1li+0h9HnGe/VmhHj1npAd1IhTkx3JFAqS/4 RSha657HujuvJVixt9jVsuTduOAGwhwtSPxx9YpgqJN/x2eR9ab+i2vIEXrYCVoWFWTf 8nefcD1ORie0Lis7NdqxZLtd114F8Y39tr3c6RFlrlbdssL6fzPhv9YN+Mzpp+nL+qQ6 lw4+vagiu8Onv9vs/nrzruDINsFCN9qdMVpasKxT9MAK49nyKVKk83opDtny9leZixGK JMmGmNIrAwXs5gDA6jfh+KG0uk80aEA6B6gPNZHdv5Atf486uKPWhv6ne1AFV+2IgniM L1aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=B2FJnuOSg3y87ZLQF6yLbq4VaCVP6tNd1MKxXPgIEGM=; b=B/GIRP5R+ymeZo06CJa6cEPpXPUz6dWbpjKfGFMgoCqxl3HmY4AY3XDvXf9jMtt77i CmVPIWXk7rtys/GAJ7URtHLh2ovMnQjhI1lh8Qw5i60IgNZTgpal4uUPp/4gRJ/MQVM8 8+cqwypjI+I2gy45uRqbjGkVktopRuw3iSDw7BdM0/ua62f36XCYLrl9DT0O60k+wrEC /xq4K26W2fcVFzfq1kXpIbH515nW+S5Q4QDbaETi2PRZRcpKxJKeVXRL6B/JLblCBN90 x15cxf4dyTUEQzwKCUSOBzfjnmSgkXyB2IslXlQB8N6X0XwssxupNPa6aMM+1T1u7Xpn 5jXQ== X-Gm-Message-State: APf1xPAYInlDZYGM8GkkIDnRLn3LmA/9z/TFTarMOm5mFR1n83amjfJw klqW6OT9wv0LDIHPXDFLkqSBBm+FUOlWBjqtdbZSy+Y6 X-Google-Smtp-Source: AG47ELt+1XnzRz1WEGS8M1tU4L/IHAw7Xf9dvzAscBLjEQnSj9qXJBbns2yyeiBh8XOSmyWHQcl50ivGIuV86t8tBXM= X-Received: by 10.200.19.138 with SMTP id h10mr7614718qtj.300.1519733698389; Tue, 27 Feb 2018 04:14:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.62.48 with HTTP; Tue, 27 Feb 2018 04:14:37 -0800 (PST) In-Reply-To: References: From: Claus Ibsen Date: Tue, 27 Feb 2018 13:14:37 +0100 Message-ID: Subject: Re: camel toD with replyTo in URI specifying IBM MQ queue manager To: users@camel.apache.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Thanks for the analysis. You can log a JIRA in the issue tracker (there is a link from this page) http://camel.apache.org/support.html You are welcome to dive into the source code in camel-jms to see if you can find where that normalization is and fix so it only prefix with double slashes. http://camel.apache.org/contributing On Tue, Feb 27, 2018 at 12:18 PM, Paul Broughton Spida Solutions wrote: > Hi Claus, I am starting to think that perhaps this is a bug within the Ca= mel JMS framework (I could be wrong). > > What appears to be happening when it comes to the replyTo queue name is t= he Queue Name value is =E2=80=9Cnormalised=E2=80=9D incorrectly. As I under= stand things, if the replyTo queue is specified with a / (e.g. TESTQM/MyTes= tQ the queue should be defined with both the IBM MQ Queue manager and the q= ueue name so the jms queue name should look something like "queue://TESTQM= /MyTestQ=E2=80=9D. > This isn=E2=80=99t happening and the JMSQueue object is being created ins= tead as queue:///TESTQM/MyTestQ (Note the 3 =E2=80=9C/=E2=80=9C after =E2= =80=9Cqueue:=E2=80=9D as apposed to the correct 2 =E2=80=9C/=E2=80=9C of th= e previous example). > It seems its impossible to get the Camel JMS component to create a replyT= o JMSQueue object correctly. > > What is interesting is that if no replyTo is specified and the temp reply= To model is in use then the JMSQueue object is created perfectly , the queu= e name looks something like this queue://TESTQM/AMQ6634864376 which is 100%= correct. > > Hopefully I am making some sense here. If this is a bug as I suspect, how= would I go about raising that to the correct people? > > regards > Paul > > On 26 Feb 2018, 12:25 +0000, Claus Ibsen , wrote: >> Hi >> >> I think there is some destination resolver spi you can configure on >> the component/endpoint where you can add your java code to build the >> queue name using the IBM MQ client api. >> >> >> >> On Mon, Feb 26, 2018 at 12:42 PM, Paul Broughton Spida Solutions >> wrote: >> > Hi, I have a toD element in my route which sends to a jms Queue which = is provided by IBM MQ. I have the CamelJMSDestinationName set to the queue = and a uri which looks similar to the folowing >> > wmq:queue:placeholder?preserveMessageQos=3Dtrue&replyTo=3DmyQM/myT= estQ&exchangePattern=3DinOut&replyToType=3Dshared.... >> > according to my understanding of what I have read on the various forum= s on this I would expect this to be translated into a replyTo Queue Manager= and Queue combination that MQ can understand. However, the data in replyTo= is simply translated into a queue name that contains a slash with no queue= manager. >> > Does anybody have any insights into how to go about setting the replyT= o queue manager on such a route? I have tried setting the JMSReplyTo value = in the context header but this just gets overridden by the URI value and if= I dont have the URI value then camel assumes a dynamic response queue (whi= ch ironically does have the queue manager details properly populated) >> > thanks Paul >> > >> > Paul Broughton >> > Spida Solutions >> > London =E2=80=A2 Bath =E2=80=A2 UK >> > +44 (0)79 319 38243 >> > +44 (0)12 4981 5081 >> > www.spidasolutions.com >> > >> >> >> >> -- >> Claus Ibsen >> ----------------- >> http://davsclaus.com @davsclaus >> Camel in Action 2: https://www.manning.com/ibsen2 --=20 Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2