Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 56789 invoked from network); 11 Jun 2009 05:04:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jun 2009 05:04:34 -0000 Received: (qmail 34658 invoked by uid 500); 11 Jun 2009 05:04:46 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 34593 invoked by uid 500); 11 Jun 2009 05:04:45 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 34583 invoked by uid 99); 11 Jun 2009 05:04:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2009 05:04:45 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.77.186.17] (HELO mx3.progress.com) (192.77.186.17) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2009 05:04:33 +0000 Received: from mx3.progress.com (127.0.0.1) by mx3.progress.com (MlfMTA v3.2r9) id h628620171s2 for ; Thu, 11 Jun 2009 01:04:12 -0400 (envelope-from ) Received: from progress.com ([192.233.92.16]) by mx3.progress.com (SonicWALL 6.2.2.1073) with ESMTP; Thu, 11 Jun 2009 01:02:52 -0400 Received: from NTEXFE02.bedford.progress.com (ntexfe02 [10.128.10.26]) by progress.com (8.13.8/8.13.8) with ESMTP id n5B52pox009264; Thu, 11 Jun 2009 01:02:51 -0400 (EDT) Received: from MAIL02.bedford.progress.com ([172.16.2.55]) by NTEXFE02.bedford.progress.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 11 Jun 2009 01:02:51 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C9EA51.DEF222AC" Subject: RE: Can't Disable JMX? Date: Thu, 11 Jun 2009 01:02:49 -0400 Message-ID: In-Reply-To: <7b3355cb0906091048x22d458f5m3f5c0d97adf86dd6@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Can't Disable JMX? Thread-Index: AcnpKp2c+WPgAzNYRo6nT3wo79xzzQBJmgTA From: "Nawaz Ahmed" To: Cc: X-OriginalArrivalTime: 11 Jun 2009 05:02:51.0757 (UTC) FILETIME=[DF5F11D0:01C9EA51] X-Mlf-Version: 6.2.2.1073 X-Mlf-UniqueId: o200906110502510237953 X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C9EA51.DEF222AC Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, I have doubt regarding this Topic. If bin/activemq script is modified by following lines of code: "if "%SUNJMX%" =3D=3D "" set SUNJMX=3D" i.e setting the JMS property = to null. Then How do we Stop the broker using the command "active-admin.bat stop hostname"? =20 Thanks and Regards Nawaz ahmed =20 -----Original Message----- From: Bruce Snyder [mailto:bruce.snyder@gmail.com]=20 Sent: Tuesday, June 09, 2009 11:19 PM To: users@activemq.apache.org Subject: Re: Can't Disable JMX? =20 On Tue, Jun 9, 2009 at 11:28 AM, mrh wrote: >=20 > I'm trying to disable JMX using the activemq.xml file = (useJmx=3D"false") and it > does not seem to be working. I can still connect using jconsole and the > admin webpage. Is this a bug or is there somewhere else that this must be > disabled? =20 To completely disable JMX in ActiveMQ, you need to edit the ActiveMQ startup script so that the com.sun.management.jmxremote property is not set. This can be done by editing the bin/activemq script so that the SUNJMX property is empty. Below are examples: =20 Linux/Unix: =20 SUNJMX=3D =20 Windows: =20 if "%SUNJMX%" =3D=3D "" set SUNJMX=3D =20 Bruce --=20 perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=3D6-E+G-N>61E