Return-Path: X-Original-To: apmail-qpid-commits-archive@www.apache.org Delivered-To: apmail-qpid-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 926816B87 for ; Mon, 16 May 2011 20:50:38 +0000 (UTC) Received: (qmail 17187 invoked by uid 500); 16 May 2011 20:50:38 -0000 Delivered-To: apmail-qpid-commits-archive@qpid.apache.org Received: (qmail 17153 invoked by uid 500); 16 May 2011 20:50:38 -0000 Mailing-List: contact commits-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 commits@qpid.apache.org Received: (qmail 17146 invoked by uid 99); 16 May 2011 20:50:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 May 2011 20:50:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 May 2011 20:50:37 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 80AB8238896F; Mon, 16 May 2011 20:50:17 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1103884 - /qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQTopic.java Date: Mon, 16 May 2011 20:50:17 -0000 To: commits@qpid.apache.org From: rajith@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110516205017.80AB8238896F@eris.apache.org> Author: rajith Date: Mon May 16 20:50:17 2011 New Revision: 1103884 URL: http://svn.apache.org/viewvc?rev=1103884&view=rev Log: QPID-3254 The default for routing key should be based on the context. i.e for sending it should be "" and for receiving it should be "#". However we currently don't have a way of handling this properly. Therefore defaulting it to "". Modified: qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQTopic.java Modified: qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQTopic.java URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQTopic.java?rev=1103884&r1=1103883&r2=1103884&view=diff ============================================================================== --- qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQTopic.java (original) +++ qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQTopic.java Mon May 16 20:50:17 2011 @@ -186,8 +186,8 @@ public class AMQTopic extends AMQDestina } else { - setRoutingKey(new AMQShortString("#")); - setSubject("#"); + setRoutingKey(new AMQShortString("")); + setSubject(""); return super.getRoutingKey(); } } --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:commits-subscribe@qpid.apache.org