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 42D60200D11 for ; Mon, 2 Oct 2017 12:15:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 416461609EF; Mon, 2 Oct 2017 10:15: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 8843B1609DE for ; Mon, 2 Oct 2017 12:15:03 +0200 (CEST) Received: (qmail 64696 invoked by uid 500); 2 Oct 2017 10:15:02 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 64684 invoked by uid 99); 2 Oct 2017 10: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; Mon, 02 Oct 2017 10: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 C2088C4D82 for ; Mon, 2 Oct 2017 10:15:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.932 X-Spam-Level: **** X-Spam-Status: No, score=4.932 tagged_above=-999 required=6.31 tests=[RCVD_IN_PSBL=2.7, SPF_FAIL=0.919, SPF_HELO_PASS=-0.001, URI_HEX=1.313, URI_TRY_3LD=0.001] autolearn=disabled 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 VfWgA4mlFllR for ; Mon, 2 Oct 2017 10:14:59 +0000 (UTC) Received: from n4.nabble.com (n4.nabble.com [162.253.133.72]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 6D3C96103C for ; Mon, 2 Oct 2017 10:14:59 +0000 (UTC) Received: from mben.nabble.com (localhost [127.0.0.1]) by n4.nabble.com (Postfix) with ESMTP id 9CD8014ACF179 for ; Mon, 2 Oct 2017 03:14:58 -0700 (MST) Date: Mon, 2 Oct 2017 03:14:58 -0700 (MST) From: boekhold To: users@activemq.apache.org Message-ID: <1506939298640-0.post@n4.nabble.com> Subject: msg.getJMSReplyTo().toString() and Session.createQueue(replyString) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Mon, 02 Oct 2017 10:15:04 -0000 Hi, The following code fails: String replyDestStr = msg.getJMSReplyTo().toString(); // forward the request asynchronously to a 3rd-party system, with // "replyDestStr" included in the 3rd-party request and response Queue replyQ = session.createQueue(replyDestStr); The problem is that the first line returns something like "queue://queuename", but the createQueue() call doesn't strip that off, and I end up posting to a queue that is *actually* called "queue://queuename". Which is a bit weird, because ActiveMQDestination.createDestination(name) *does* strip off the qualified prefixes. Unfortunately I cannot use the ActiveMQDestination.createDestination() call because my code has to be generic (specifically it has to work with WebsphereMQ as well). Is this a bug perhaps? Maybe ActiveMQSession.createQueue() shouldn't call "new ActiveMQQueue()", but "ActiveMQDestination.createDestination(name, 1)"? Maarten -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html