Skip to content
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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

DressedUpZebra
Copy link
Contributor

@DressedUpZebra DressedUpZebra commented Jul 21, 2024

Updated things I've noticed that did not work when following the guide:

  • Windows example of starting the broker did not work. The broker on windows can be started with activemq.bat start
  • Removed the mentions of ANT in the guide, the ANT examples were removed in 5.16.0
  • Updated instructions on how to start the broker on windows with web apps.
  • Starting broker with the demo apps did not work, updated the configuration to use the config the broker ships with, saved the 5.x demo config for reference.
  • Updated in the guide where to change the default credentials.

@@ -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
Copy link
Member

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.

Copy link
Contributor Author

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"
Copy link
Member

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants