activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nawaz Ahmed" <naah...@progress.com>
Subject RE: Activemq-admin stop does not work
Date Mon, 08 Jun 2009 05:29:47 GMT
Hello Bruce,

  Even After making the changes in the Activemq.bat file as mentioned in


  your mail, I was not able to stop the Broker using the command
"Activemq-

  admin stop hostname"

  

  Starting the ActiveMQ after making the changes in the activemq.bat
file 

  gives me the following errors in the console : 

  

'SUNJMX' is not recognized as an internal or external command,operable
program or batch file.

'-Dcom.sun.management.jmxremote.authenticate' is not recognized as an
internal or external command, operable program or batch file.

'-Dcom.sun.management.jmxremote.ssl' is not recognized as an internal or
external command,operable program or batch file.

 

  What changes need to be done in order to make it work properly?

  Eagerly waiting for your reply. 

  NOTE: ActiveMQ.bat file is attached with this mail in the text format.

 

Thanks and Regards,

Nawaz Ahmed

Progress Software Development Pvt Ltd 

 

-----Original Message-----
From: Bruce Snyder [mailto:bruce.snyder@gmail.com] 
Sent: Saturday, May 30, 2009 12:16 AM
To: users@activemq.apache.org
Subject: Re: Activemq-admin stop does not work

 

On Fri, May 29, 2009 at 2:45 AM, Johannes Frank

<johannes.frank@kisters.de> wrote:

> 

> Hello I'm trying to use "activemq-admin stop" to stop a running
activemq

> instance (it is running, I have the other console spitting out output
all

> the time). I'm using the standard activemq 5.2 I downloaded from you.

> However, as soon as I'm doing the stop command: the following
Exception

> jungle is generated:

 

You just need to edit the ActiveMQ startup script a bit so that JMX

authentication and SSL are disabled and a port number is specified.

Just make the following edits to lines 76-77 to the bin/activemq.bat

script:

 

if "%SUNJMX%" == "" set

SUNJMX=-Dcom.sun.management.jmxremote.port=1099

-Dcom.sun.management.jmxremote.authenticate=false

-Dcom.sun.management.jmxremote.ssl=false

REM set SUNJMX=-Dcom.sun.management.jmxremote

 

After making this quick change to the script, start up ActiveMQ again

and the 'activemq-admin stop' command should work properly.

 

Bruce

-- 

perl -e 'print
unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"

);'

 

ActiveMQ in Action: http://bit.ly/2je6cQ

Blog: http://bruceblog.org/

Twitter: http://twitter.com/brucesnyder


Mime
View raw message