Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9136C9301 for ; Wed, 8 Feb 2012 20:57:27 +0000 (UTC) Received: (qmail 22791 invoked by uid 500); 8 Feb 2012 20:57:26 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 22210 invoked by uid 500); 8 Feb 2012 20:57:25 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 21972 invoked by uid 99); 8 Feb 2012 20:57:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2012 20:57:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2012 20:57:22 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 120631ABF7B for ; Wed, 8 Feb 2012 20:57:01 +0000 (UTC) Date: Wed, 8 Feb 2012 20:57:01 +0000 (UTC) From: "Mark Rappoport (Created) (JIRA)" To: dev@activemq.apache.org Message-ID: <2007228650.16505.1328734621076.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (AMQ-3708) Run-time Setting of Destination Prefix MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Run-time Setting of Destination Prefix -------------------------------------- Key: AMQ-3708 URL: https://issues.apache.org/jira/browse/AMQ-3708 Project: ActiveMQ Issue Type: Improvement Components: CMS (C++ client) Affects Versions: 5.5.1 Environment: All Reporter: Mark Rappoport Priority: Minor Fix For: NEEDS_REVIEWED Some STOMP-aware message brokers (such as HornetQ) want their destinations prefixed in a manner different from "/queue/" or "/topic/". HornetQ, for example, wants it to be "jms.queue." or "jms.topic.". To address this, I've made some changes to StompHelper, adding the following URI parameters: * wireFormat.queuePrefix - defaults to "/queue/" * wireFormat.topicPrefix - defaults to "/topic/" * wireFormat.tempQueuePrefix - defaults to "/temp-queue/" * wireFormat.tempTopicPrefix - defaults to "/temp-topic/" My patch, however, fails to utilize the framework laid out by the StompWireformatProperties class, as the current code structure makes it very hard. Regardless, I've tested it with the SimpleProducer example (make sure you provide guest/guest as auth params if you're running a vanilla HornetQ) and it seems to work fine. The patch is against the activemq-cpp-3.4.1 tag as trunk wouldn't compile; some formatting issues may be present as well. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira