[ https://issues.apache.org/activemq/browse/AMQ-644?page=all ]

Albert Strasheim reopened AMQ-644:
----------------------------------

             
I downloaded the latest apache-activemq-4.1-incubator-SNAPSHOT ZIP today and 
I've noticed a few issues with the Java Service Wrapper for Windows.

Firstly, my ZIP was missing wrapper.jar. According to wrapper.conf, it is 
supposed to live in bin\core\boot, but that directory doesn't seem to exist.

The following line should probably be changed from:

wrapper.java.additional.5=-Dactivemq.home=%ACTIVEMQ_HOME%

to

wrapper.java.additional.5=-Dactivemq.home="%ACTIVEMQ_HOME%"

(quotes added) so that it works if ActiveMQ is installed in a directory that 
contains spaces in its name, e.g. C:\Program Files\ActiveMQ.

The comments immediately following "# Uncomment to enable jmx" should be 3 
lines. They all seem to be on one line (maybe a line endings issue?).

The idea I got from 
http://wrapper.tanukisoftware.org/doc/english/integrate-start-stop-win.html was 
that the second method of starting and stopping the service is preferable. If 
this is true, one wants the following service wrapper:

wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperStartStopApp

and the following application parameters (assuming run.jar hasn't changed since 
I tried with 4.0.2):

wrapper.app.parameter.1=org.apache.activemq.console.Main
wrapper.app.parameter.2=2
wrapper.app.parameter.3=start
wrapper.app.parameter.4=xbean:activemq.xml
wrapper.app.parameter.5=org.apache.activemq.console.Main
wrapper.app.parameter.6=true
wrapper.app.parameter.7=1
wrapper.app.parameter.8=stop

I posted about this on the mailing list:

http://mail-archives.apache.org/mod_mbox/geronimo-activemq-users/200609.mbox/[EMAIL
 PROTECTED]
http://mail-archives.apache.org/mod_mbox/geronimo-activemq-users/200609.mbox/[EMAIL
 PROTECTED]

> create Java Service Wrapper for ActiveMQ
> ----------------------------------------
>
>                 Key: AMQ-644
>                 URL: https://issues.apache.org/activemq/browse/AMQ-644
>             Project: ActiveMQ
>          Issue Type: New Feature
>          Components: Broker
>            Reporter: james strachan
>         Assigned To: Joseph Dennis Gapuz
>            Priority: Minor
>             Fix For: 4.1
>
>         Attachments: wrapper.conf
>
>
> http://wrapper.tanukisoftware.org/doc/english/introduction.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to