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 D430FD847 for ; Fri, 20 Jul 2012 09:59:10 +0000 (UTC) Received: (qmail 59666 invoked by uid 500); 20 Jul 2012 09:59:10 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 59631 invoked by uid 500); 20 Jul 2012 09:59:10 -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 59622 invoked by uid 99); 20 Jul 2012 09:59:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2012 09:59:09 +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; Fri, 20 Jul 2012 09:59:08 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id E85A9238899C for ; Fri, 20 Jul 2012 09:58:49 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1363700 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java Date: Fri, 20 Jul 2012 09:58:49 -0000 To: commits@activemq.apache.org From: dejanb@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120720095849.E85A9238899C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dejanb Date: Fri Jul 20 09:58:49 2012 New Revision: 1363700 URL: http://svn.apache.org/viewvc?rev=1363700&view=rev Log: https://issues.apache.org/jira/browse/AMQ-3918 - revert accidental change - start connector only after we create a mbean for it Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java?rev=1363700&r1=1363699&r2=1363700&view=diff ============================================================================== --- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java (original) +++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java Fri Jul 20 09:58:49 2012 @@ -2386,11 +2386,11 @@ public class BrokerService implements Se if (policy != null) { connector.setMessageAuthorizationPolicy(policy); } - connector.getStatistics().setEnabled(enableStatistics); - connector.start(); if (isUseJmx()) { connector = registerConnectorMBean(connector); } + connector.getStatistics().setEnabled(enableStatistics); + connector.start(); return connector; }