Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 81826 invoked from network); 27 Jul 2007 15:30:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Jul 2007 15:30:14 -0000 Received: (qmail 23832 invoked by uid 500); 27 Jul 2007 15:30:14 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 23807 invoked by uid 500); 27 Jul 2007 15:30:14 -0000 Mailing-List: contact commits-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 commits@activemq.apache.org Received: (qmail 23797 invoked by uid 99); 27 Jul 2007 15:30:13 -0000 Received: from Unknown (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2007 08:30:13 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2007 15:30:12 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 57D2C1A981A; Fri, 27 Jul 2007 08:29:52 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r560274 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractRegion.java Date: Fri, 27 Jul 2007 15:29:52 -0000 To: commits@activemq.apache.org From: rajdavies@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070727152952.57D2C1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rajdavies Date: Fri Jul 27 08:29:51 2007 New Revision: 560274 URL: http://svn.apache.org/viewvc?view=rev&rev=560274 Log: No need to create destination twice when doing a destination lookup Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractRegion.java Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractRegion.java URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractRegion.java?view=diff&rev=560274&r1=560273&r2=560274 ============================================================================== --- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractRegion.java (original) +++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractRegion.java Fri Jul 27 08:29:51 2007 @@ -334,7 +334,7 @@ try { context.getBroker().addDestination(context,destination); - dest = addDestination(context, destination); + //dest = addDestination(context, destination); } catch (DestinationAlreadyExistsException e) { // if the destination already exists then lets ignore this error