Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-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 E4B408327 for ; Sun, 11 Sep 2011 21:42:11 +0000 (UTC) Received: (qmail 26033 invoked by uid 500); 11 Sep 2011 21:42:11 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 25981 invoked by uid 500); 11 Sep 2011 21:42:11 -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 25974 invoked by uid 99); 11 Sep 2011 21:42:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Sep 2011 21:42:11 +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; Sun, 11 Sep 2011 21:42:10 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 5A23C238897D for ; Sun, 11 Sep 2011 21:41:50 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1169549 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/AdvisoryConsumer.java Date: Sun, 11 Sep 2011 21:41:50 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110911214150.5A23C238897D@eris.apache.org> Author: tabish Date: Sun Sep 11 21:41:49 2011 New Revision: 1169549 URL: http://svn.apache.org/viewvc?rev=1169549&view=rev Log: fix for: https://issues.apache.org/jira/browse/AMQ-3488 Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/AdvisoryConsumer.java Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/AdvisoryConsumer.java URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/AdvisoryConsumer.java?rev=1169549&r1=1169548&r2=1169549&view=diff ============================================================================== --- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/AdvisoryConsumer.java (original) +++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/AdvisoryConsumer.java Sun Sep 11 21:41:49 2011 @@ -96,7 +96,9 @@ public class AdvisoryConsumer implements ActiveMQTempDestination tempDest = (ActiveMQTempDestination)dest; if (dinfo.getOperationType() == DestinationInfo.ADD_OPERATION_TYPE) { - tempDest.setConnection(null); + if (tempDest.getConnection() != null) { + tempDest = (ActiveMQTempDestination) tempDest.createDestination(tempDest.getPhysicalName()); + } connection.activeTempDestinations.put(tempDest, tempDest); } else if (dinfo.getOperationType() == DestinationInfo.REMOVE_OPERATION_TYPE) { connection.activeTempDestinations.remove(tempDest);