Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 58507 invoked from network); 9 Apr 2008 12:23:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Apr 2008 12:23:56 -0000 Received: (qmail 37469 invoked by uid 500); 9 Apr 2008 12:23:56 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 37440 invoked by uid 500); 9 Apr 2008 12:23:56 -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 37430 invoked by uid 99); 9 Apr 2008 12:23:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2008 05:23:56 -0700 X-ASF-Spam-Status: No, hits=-2000.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; Wed, 09 Apr 2008 12:23:13 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 0ABF61A9832; Wed, 9 Apr 2008 05:23:28 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r646299 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/virtual/CompositeDestinationFilter.java Date: Wed, 09 Apr 2008 12:23:27 -0000 To: commits@activemq.apache.org From: rajdavies@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080409122332.0ABF61A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rajdavies Date: Wed Apr 9 05:23:26 2008 New Revision: 646299 URL: http://svn.apache.org/viewvc?rev=646299&view=rev Log: Apply patch for https://issues.apache.org/activemq/browse/AMQ-1620 Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/virtual/CompositeDestinationFilter.java Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/virtual/CompositeDestinationFilter.java URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/virtual/CompositeDestinationFilter.java?rev=646299&r1=646298&r2=646299&view=diff ============================================================================== --- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/virtual/CompositeDestinationFilter.java (original) +++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/virtual/CompositeDestinationFilter.java Wed Apr 9 05:23:26 2008 @@ -70,12 +70,16 @@ continue; } + Message forwarded_message; if (copyMessage) { - message = message.copy(); - message.setDestination(destination); + forwarded_message = message.copy(); + forwarded_message.setDestination(destination); + } + else { + forwarded_message = message; } - send(context, message, destination); + send(context, forwarded_message, destination); } if (!forwardOnly) { super.send(context, message);