-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AMQ-9537] Update user-guide.html #1266
base: main
Are you sure you want to change the base?
Conversation
The jetty demo configuration is using jetty settings shipped with the broker
@@ -98,7 +98,7 @@ <h2>Access the web demos</h2> | |||
</p> | |||
<pre> | |||
cd bin | |||
activemq.bat console xbean:examples/conf/activemq-demo.xml | |||
activemq.bat start xbean:../examples/conf/activemq-demo.xml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NB: activemq console
is actually valid (at least for Unix shell script). activemq.bat
doesn't really take any action arg. Maybe we should clean the arg.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the review!
You are correct that the activemq.bat file does not take any arguments directly, but it does pass the provided arguments to the jar using %*. For reference, see this line:
"%_JAVACMD%" %ACTIVEMQ_SUNJMX_START% %ACTIVEMQ_DEBUG_OPTS% %ACTIVEMQ_OPTS% %ACTIVEMQ_SSL_OPTS% -Dactivemq.classpath="%ACTIVEMQ_CLASSPATH%" -Dactivemq.home="%ACTIVEMQ_HOME%" -Dactivemq.base="%ACTIVEMQ_BASE%" -Dactivemq.conf="%ACTIVEMQ_CONF%" -Dactivemq.data="%ACTIVEMQ_DATA%" -Djolokia.conf="%JOLOKIA_CONF%" -Djava.io.tmpdir="%ACTIVEMQ_TMP%" -jar "%ACTIVEMQ_HOME%/bin/activemq.jar" %* |
Running
activemq.bat
without start
argument will not start the broker.
some demos Include this file in your configuration to enable ActiveMQ web components | ||
e.g. <import resource="jetty.xml"/> | ||
--> | ||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would completely remove this file as it's ActiveMQ 5.x specific (not 6).
Updated things I've noticed that did not work when following the guide:
saved the 5.x demo config for reference.