From dev-return-13660-apmail-activemq-dev-archive=activemq.apache.org@activemq.apache.org Tue Dec 09 21:52:29 2008 Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 68575 invoked from network); 9 Dec 2008 21:52:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Dec 2008 21:52:29 -0000 Received: (qmail 52726 invoked by uid 500); 9 Dec 2008 21:52:41 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 52537 invoked by uid 500); 9 Dec 2008 21:52:41 -0000 Mailing-List: contact dev-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 dev@activemq.apache.org Received: (qmail 52526 invoked by uid 99); 9 Dec 2008 21:52:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2008 13:52:41 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2008 21:52:26 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 87A46234C2B8 for ; Tue, 9 Dec 2008 13:52:05 -0800 (PST) Message-ID: <1764026034.1228859525554.JavaMail.jira@brutus> Date: Tue, 9 Dec 2008 13:52:05 -0800 (PST) From: "Tim Harris (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-2027) setUseJmx(false) ignored when creating embedded broker. In-Reply-To: <852212241.1228841405427.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-2027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47997#action_47997 ] Tim Harris commented on AMQ-2027: --------------------------------- Yep, I tried that to no effect before submitting the bug, but I will give it another go just in case I was being a muppet. > setUseJmx(false) ignored when creating embedded broker. > ------------------------------------------------------- > > Key: AMQ-2027 > URL: https://issues.apache.org/activemq/browse/AMQ-2027 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.2.0 > Environment: Running inside Netbeans environment on a dual-core laptop: > Product Version: NetBeans IDE 6.1 (Build 200805300101) > Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15 > System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb) > Reporter: Tim Harris > Attachments: useJmsBug.java > > > When creating an embedded broker, the BrokerService setUseJmx(false) method appears to be ignored. > I was using the URI configuration technique, but even explicit setup calls seem to fail. > Here's an example setup: > _broker = new BrokerService(); > _broker.setBrokerName("testjms"); > _broker.setPersistent(false); > _broker.setUseJmx(false); > _broker.addConnector("tcp://localhost:61616"); > _broker.start(); > When I run the application I get the following messages (note the failure to start the JMX connector at the end): > 09-Dec-2008 16:29:42 org.apache.activemq.broker.BrokerService start > INFO: Using Persistence Adapter: AMQPersistenceAdapter(activemq-data\aftestjms) > 09-Dec-2008 16:29:42 org.apache.activemq.store.amq.AMQPersistenceAdapter start > INFO: AMQStore starting using directory: activemq-data\aftestjms > 09-Dec-2008 16:29:42 org.apache.activemq.kaha.impl.KahaStore initialize > INFO: Kaha Store using data directory activemq-data\aftestjms\kr-store\state > 09-Dec-2008 16:29:42 org.apache.activemq.store.amq.AMQPersistenceAdapter start > INFO: Active data files: [] > 09-Dec-2008 16:29:42 org.apache.activemq.store.amq.AMQPersistenceAdapter start > WARNING: The ReferenceStore is not valid - recovering ... > 09-Dec-2008 16:29:42 org.apache.activemq.kaha.impl.KahaStore delete > INFO: Kaha Store successfully deleted data directory activemq-data\aftestjms\kr-store\data > 09-Dec-2008 16:29:42 org.apache.activemq.store.amq.AMQPersistenceAdapter recover > INFO: Journal Recovery Started from: DataManager:(data-) > 09-Dec-2008 16:29:42 org.apache.activemq.store.amq.AMQPersistenceAdapter recover > INFO: Recovered 0 operations from redo log in 0.0 seconds. > 09-Dec-2008 16:29:42 org.apache.activemq.store.amq.AMQPersistenceAdapter start > INFO: Finished recovering the ReferenceStore > 09-Dec-2008 16:29:42 org.apache.activemq.broker.BrokerService getBroker > INFO: ActiveMQ null JMS Message Broker (aftestjms) is starting > 09-Dec-2008 16:29:42 org.apache.activemq.broker.BrokerService getBroker > INFO: For help or more information please see: http://activemq.apache.org/ > 09-Dec-2008 16:29:42 org.apache.activemq.kaha.impl.KahaStore initialize > INFO: Kaha Store using data directory activemq-data\aftestjms\kr-store\data > 09-Dec-2008 16:29:42 org.apache.activemq.broker.BrokerService start > INFO: ActiveMQ JMS Message Broker (aftestjms, ID:LT-BAS-EN-05004-1199-1228840182685-0:0) started > 09-Dec-2008 16:29:42 org.apache.activemq.broker.TransportConnector start > INFO: Connector vm://aftestjms Started > Waiting for messages... > 09-Dec-2008 16:29:45 org.apache.activemq.broker.jmx.ManagementContext$1 run > WARNING: Failed to start jmx connector: Cannot bind to URL [rmi://localhost:1099/jmxrmi]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: > java.net.ConnectException: Connection refused: connect] > I will attach a sample java souce file. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.