Return-Path: X-Original-To: apmail-qpid-dev-archive@www.apache.org Delivered-To: apmail-qpid-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 A842210A27 for ; Wed, 21 Aug 2013 11:12:57 +0000 (UTC) Received: (qmail 28525 invoked by uid 500); 21 Aug 2013 11:12:56 -0000 Delivered-To: apmail-qpid-dev-archive@qpid.apache.org Received: (qmail 28479 invoked by uid 500); 21 Aug 2013 11:12:55 -0000 Mailing-List: contact dev-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list dev@qpid.apache.org Received: (qmail 28402 invoked by uid 99); 21 Aug 2013 11:12:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Aug 2013 11:12:53 +0000 Date: Wed, 21 Aug 2013 11:12:53 +0000 (UTC) From: "Justin Ross (JIRA)" To: dev@qpid.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (QPID-526) Don't use a Queue object just to convey the name of a queue ..... MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/QPID-526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Justin Ross closed QPID-526. ---------------------------- > Don't use a Queue object just to convey the name of a queue ..... > ----------------------------------------------------------------- > > Key: QPID-526 > URL: https://issues.apache.org/jira/browse/QPID-526 > Project: Qpid > Issue Type: Improvement > Components: C++ Client > Reporter: Jonathan Robie > Fix For: 0.6 > > > We should use strings to represent the name of a queue, not a Queue object, which implies that much more is going on than creating a string. The first parameter of the channel.consume() method is one place where this should be fixed: > Example (from a topic listener): > Queue message_queue("message_queue"); > Listener listener; > string routingKey="routing_key"; > channel.consume(message_queue, routingKey, &listener); > channel.start(); > The only reason for the message_queue object is to hold the name of the AMQP broker queue from which messages are to be consumed, but code that creates a Queue object raises the expectation that a queue is being created on the client side, and make it harder for users to grasp the underlying model. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org For additional commands, e-mail: dev-help@qpid.apache.org