Modified: websites/production/activemq/content/hermes-jms.html
==============================================================================
--- websites/production/activemq/content/hermes-jms.html (original)
+++ websites/production/activemq/content/hermes-jms.html Sat Jun 27 21:23:55
2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- Hermes Jms
@@ -112,7 +103,7 @@
<p>Use the tree control to open your session and the FOO.BAR destination. Try
browse the queue. Then run the ActiveMQ sample producer via</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
mvn producer
]]></script>
</div></div>
Modified: websites/production/activemq/content/hermes-screenshot.html
==============================================================================
--- websites/production/activemq/content/hermes-screenshot.html (original)
+++ websites/production/activemq/content/hermes-screenshot.html Sat Jun 27
21:23:55 2015
@@ -77,7 +77,7 @@
<p>The following is an example of running HermesJms with ActiveMQ on OS X</p>
-<p><img class="confluence-embedded-image confluence-external-resource"
src="http://activemq.codehaus.org/hermes.png"
data-image-src="http://activemq.codehaus.org/hermes.png"></p></div>
+<p><span class="confluence-embedded-file-wrapper"><img
class="confluence-embedded-image confluence-external-resource"
src="http://activemq.codehaus.org/hermes.png"
data-image-src="http://activemq.codehaus.org/hermes.png"></span></p></div>
</td>
<td valign="top">
<div class="navigation">
Modified: websites/production/activemq/content/how-can-i-contribute.html
==============================================================================
--- websites/production/activemq/content/how-can-i-contribute.html (original)
+++ websites/production/activemq/content/how-can-i-contribute.html Sat Jun 27
21:23:55 2015
@@ -32,16 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushPlain.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- How can I contribute
@@ -85,17 +75,17 @@
<div class="wiki-content maincontent"><h2
id="HowcanIcontribute-HowcanIcontributetoApacheActiveMQ?">How can I contribute
to Apache ActiveMQ?</h2>
There are many ways you can help make ActiveMQ a better piece of software -
please dive in and help!<p>Try surf the documentation - if somethings confusing
or not clear, let us know. Download the code & try it out and see what you
think. Browse the source code. Got an itch to scratch, want to tune some
operation or add some feature?</p><p>Want to do some hacking on ActiveMQ? Try
surfing the our <a shape="rect" class="external-link"
href="http://issues.apache.org/activemq/browse/AMQ">issue tracker</a> for open
issues or features that need to be implemented, take ownership of an issue and
try fix it.</p><h2 id="HowcanIcontribute-Gettingintouch">Getting in
touch</h2><p>There are various ways of communicating with the ActiveMQ
community.</p><ul class="alternate"><li>join us on the <a shape="rect"
href="discussion-forums.html">Discussion Forums</a> or subscribe to the <a
shape="rect" href="mailing-lists.html">Mailing Lists</a> and take part in any
conversations</li><li><p>pop by on <
span>in <a shape="rect" href="irc.html">irc</a> and say
hi</span></p></li><li>add some comments to the <a shape="rect"
href="navigation.html">wiki</a></li></ul><h2
id="HowcanIcontribute-Ifyoufindabugorproblem">If you find a bug or
problem</h2><p>Please raise a new issue in our <a shape="rect"
class="external-link" href="http://issues.apache.org/activemq/browse/AMQ">issue
tracker</a></p><p>If you can create a JUnit test case then your issue is more
likely to be resolved quicker.<br clear="none"> e.g. take a look at some of the
existing <a shape="rect" class="external-link"
href="https://svn.apache.org/repos/asf/activemq/trunk/activemq-core/src/test/java/">unit
tests cases</a></p><p>Then we can add your issue to Subversion and then we'll
know when its really fixed and we can ensure that the problem <strong>stays
fixed</strong> in future releases.</p><h2
id="HowcanIcontribute-Ifyouwanttohelpoutwiththedocumentation">If you want to
help out with the documentation</h2><p>If you want to co
ntribute to the ActiveMQ documentation you should first subscribe our <a
shape="rect" class="external-link"
href="mailto:[email protected]"
rel="nofollow">dev@</a> where ActiveMQ developers interact with each
other. If you want edit rights on the ActiveMQ site, create an account in the
<a shape="rect"
href="https://cwiki.apache.org/confluence/display/ACTIVEMQ">ActiveMQ wiki</a>
and fill in and submit an ICLA to the ASF (see the <a shape="rect"
href="becoming-a-committer.html">Committer Guide</a>). Then ask on the dev@
list to be granted edit rights and an admin will do so fairly quickly. If you
want to just contribute the content, please submit the content on the dev@ list
or create an issue and attach it there. <strong>All</strong> contributions are
highly appreciated.</p><h2 id="HowcanIcontribute-Workingonthecode">Working on
the code</h2><p>Grab the <a shape="rect" href="source.html">Source</a> from
git</p><p>Build the project.</p><div class="code panel p
dl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[export MAVEN_OPTS=-Xmx512M
-XX:MaxPermSize=128M
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[export MAVEN_OPTS=-Xmx512M
-XX:MaxPermSize=128M
mvn -Dtest=false install
]]></script>
</div></div><p>PS: You might need to build multiple times (if you get a build
error) because sometimes maven fails to download all the files.</p><p>Create a
project in your IDE. e.g. if you are using Eclipse the following should do the
trick.</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[mvn eclipse:eclipse
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[mvn eclipse:eclipse
]]></script>
</div></div><p>Then import the projects into your workspace.</p><h2
id="HowcanIcontribute-Creatingpatches">Creating patches</h2><p>We gladly accept
patches if you can find ways to improve, tune or fix ActiveMQ in some
way.</p><p>Most IDEs can create nice patches now very easily. e.g. in Eclipse
just right click on a file/directory and select Team -> Create Patch. Then
just save the patch as a file and then submit it. (You may have to click on
Team -> Share... first to enable the Subversion options).</p><p>If you're a
command line person try the following to create the patch</p><div class="code
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[diff -u Main.java.orig Main.java >>
patchfile.txt
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[diff -u Main.java.orig Main.java >>
patchfile.txt
]]></script>
</div></div><p>or</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[git diff Main.java >> patchfile.txt
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[git diff Main.java >> patchfile.txt
]]></script>
</div></div><h2 id="HowcanIcontribute-Submittingpatches">Submitting
patches</h2><p>The easiest way to submit a patch is to create a new JIRA issue,
attach the patch and tick the ASF license grant check box, tick the Patch
Attached button on the issue then fire off an email to the <a shape="rect"
href="mailing-lists.html">Mailing Lists</a> or <a shape="rect"
href="discussion-forums.html">Discussion Forums</a>.</p><h2
id="HowcanIcontribute-Becomingacommmitter">Becoming a commmitter</h2><p>Once
you've got involved as above, we may well invite you to be a committer. See <a
shape="rect" href="becoming-a-committer.html">Becoming a committer</a> for more
details.</p><h2 id="HowcanIcontribute-Usingtheissuetracker">Using the issue
tracker</h2><p>Before you can raise an issue in the issue tracker you need to
register with it. This is quick & painless.</p><p>If you want to have a go
at fixing an issue you need to be in the list of activemq-developers on the
issue tracker. To join the group
, please mail the <a shape="rect" class="external-link"
href="mailto:[email protected]"
rel="nofollow">[email protected]</a> mail list with the email address
you used to register with the issue tracker and we'll add you to the
group.</p><p>Why not dive in the <a shape="rect" class="external-link"
href="https://issues.apache.org/jira/browse/AMQ">issue tracker</a>, and try
tackle some of our outstanding issues?</p><h2
id="HowcanIcontribute-Becomingacommitter">Becoming a committer</h2><p>The first
step is contributing to the project; if you want to take that a step forward
and become a fellow committer on the project then see the <a shape="rect"
href="becoming-a-committer.html">Committer Guide</a></p></div>
</td>
Modified:
websites/production/activemq/content/how-can-i-enable-detailed-logging.html
==============================================================================
--- websites/production/activemq/content/how-can-i-enable-detailed-logging.html
(original)
+++ websites/production/activemq/content/how-can-i-enable-detailed-logging.html
Sat Jun 27 21:23:55 2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- How can I enable detailed logging
@@ -93,7 +84,7 @@ By default we ship with log4j but feel f
<p>in 4.x</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
log4j.logger.org.apache.activemq=INFO
log4j.logger.org.apache.activemq.spring=WARN
]]></script>
@@ -102,7 +93,7 @@ log4j.logger.org.apache.activemq.spring=
<p>in 3.x</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
log4j.logger.org.activemq=TRACE
]]></script>
</div></div>
Modified: websites/production/activemq/content/how-can-i-get-help.html
==============================================================================
--- websites/production/activemq/content/how-can-i-get-help.html (original)
+++ websites/production/activemq/content/how-can-i-get-help.html Sat Jun 27
21:23:55 2015
@@ -72,7 +72,7 @@
<tbody>
<tr>
<td valign="top" width="100%">
-<div class="wiki-content maincontent"><h2
id="HowcanIgethelp-GettingHelp">Getting Help</h2><p>If you are experiencing
problems using ActiveMQ then please report your problem to our <a shape="rect"
class="external-link" href="http://issues.apache.org/activemq/browse/AMQ">Issue
Tracker</a>. You may also find it useful to discuss your issues with the
community on the <a shape="rect" href="discussion-forums.html">Discussion
Forums</a> or join one of our <a shape="rect" href="mailing-lists.html">Mailing
Lists</a>.</p><ul><li><a shape="rect" class="external-link"
href="http://issues.apache.org/activemq/browse/AMQ">Issue
Tracker</a></li><li><a shape="rect" href="discussion-forums.html">Discussion
Forums</a></li><li><a shape="rect" href="mailing-lists.html">Mailing
Lists</a></li><li><a shape="rect" href="faq.html">FAQ</a></li></ul><h3
id="HowcanIgethelp-Howtogethelp">How to get help</h3><p>Before you report a
problem you might want to read the <a shape="rect" href="faq.html">FAQ</a>.<br
cle
ar="none"> Whenever you are reporting a problem please be sure to include as
much information as possible; the more we know the more chance of a quicker
resolution.</p><ul><li>Which <a shape="rect" class="external-link"
href="http://activemq.apache.org/download.html">version</a> of
ActiveMQ</li><li>What platform of Java (e.g., Java SE 6 with JRE/<a
shape="rect" class="unresolved" href="#">JDK</a> 1.6.0 or J2SE 5 with JRE/<a
shape="rect" class="unresolved" href="#">JDK</a> 1.5.0)</li><li>Any particular
application/web server or container being used - if so what
version?</li><li>Stack traces generally really help! If in doubt include the
whole thing; often exceptions get wrapped in other exceptions and the exception
right near the bottom explains the actual error, not the first few lines at the
top. It's very easy for us to skim-read past unnecessary parts of a stack
trace.</li><li>Log output (e.g., <code>data/activemq.log</code>) can be useful
too; sometimes <a shape="rect" href="how
-do-i-change-the-logging.html">enabling DEBUG logging</a> can
help</li><li>Your code & configuration files are often useful</li></ul><h3
id="HowcanIgethelp-Howtogethelpfaster">How to get help faster</h3><p>We can
help you much quicker if you try the following</p><ul><li>Provide us with a
JUnit test case that demonstrates your issue. e.g. if you think you've found a
bug, can you create a test case to demonstrate the bug?</li><li><a shape="rect"
href="contributing.html">Submit a patch</a> fixing the bug! (We also buy you
beer when we meet you if you submit bug fixes <img class="emoticon
emoticon-smile"
src="https://cwiki.apache.org/confluence/s/en_GB-1988229788/4109/76e0dbb30bc8580e459c201f3535d84f9283a9ac.1/_/images/icons/emoticons/smile.png"
data-emoticon-name="smile" alt="(smile)"> )</li><li>For memory leaks or
performance related issues, if you can run a profiler on your test case and
attach the output as a file (or zipped file if it's huge) to the JIRA we can
normally fix thi
ngs much faster. e.g. you could run <a shape="rect" class="external-link"
href="http://java.sun.com/j2se/1.5.0/docs/tooldocs/share/jmap.html"
rel="nofollow">jmap</a>/<a shape="rect" class="external-link"
href="http://java.sun.com/javase/6/docs/technotes/tools/share/jhat.html"
rel="nofollow">jhat</a>, JProfiler or YourKit on your code and send us the
output. To find memory leaks it's quicker to resolve if you can tell us what
classes are taking up all of the RAM; we can normally figure out what's wrong
from that.</li></ul><h2 id="HowcanIgethelp-CommercialSupport">Commercial
Support</h2><p>This is an open source project, so the amount of time we have
available to help resolve your issue is often limited as all help is provided
on a volunteer basis. If you want to get priority help, need to get up to speed
quickly, require some training or mentoring, or need full 24 x 7 production
support you should contact a commercial company specializing in ActiveMQ
support such as...</p><ul><li><a
shape="rect" class="external-link" href="http://ameliant.com"
rel="nofollow">Ameliant</a> is a specialist consultancy based in London, UK
that focuses on open source integration and messaging using the Apache
integration stack (ActiveMQ, Camel, ServiceMix and CXF). The company delivers
consulting targeted towards development teams to address their messaging use
cases; getting operations teams up to speed on managing ActiveMQ deployments,
with a particular focus on security, high availability, and monitoring; and
migrations between versions of ActiveMQ, as well as from other JMS providers.
Ameliant does not provide production support for ActiveMQ.</li><li><a
shape="rect" class="external-link" href="http://www.openlogic.com/"
rel="nofollow">Rogue Wave / OpenLogic</a> <span style="line-height:
1.4285715;">has a dedicated team of OSS experts offering </span><span
style="line-height: 1.4285715;">round-the-clock Production Support with
competitive SLAs for </span><span styl
e="line-height: 1.4285715;">troubleshooting ActiveMQ issues and outages.
Rogue </span><span style="line-height: 1.4285715;">Wave offers a
comprehensive week-long instructor-led training program for </span><span
style="line-height: 1.4285715;">developers and admins. Rogue Wave OpenLogic
also provides Architecture </span><span style="line-height:
1.4285715;">and Design Consulting, and a Developer Support contract to assist
in the </span><span style="line-height: 1.4285715;">development of
messaging applications.</span></li><li><a shape="rect" class="external-link"
href="http://www.redhat.com/products/jbossenterprisemiddleware/amq/"
rel="nofollow">Red Hat</a> offers JBoss A-MQ, a supported distribution of
Apache ActiveMQ, that include Enterprise Developer and Production Support, and
offer training and consultancy for enterprise deployments.</li><li><a
shape="rect" class="external-link" href="http://www.savoirtech.com"
rel="nofollow">Savoir Technologies, Inc</a>
provides enterprise consulting, training and support for ActiveMQ and a host
of other Apache service containers. Savoir can provide best practice mentoring
for developing with ActiveMQ, as well as architectural/design reviews,
troubleshooting and SOA infrastructure implementations. Savoir's staff includes
some of the contributors of ActiveMQ who are on the ground consulting and are
familiar with real world implementations and issues.</li><li><a shape="rect"
class="external-link" href="http://www.ttmsolutions.com/" rel="nofollow">Total
Transaction Management (TTM)</a> provides ActiveMQ consulting and support, as
well as security and <a shape="rect" class="external-link"
href="http://www.ttmsolutions.com/Transactional_Software_Solutions/Active_Monitor_AMon.php/"
rel="nofollow">monitoring</a> add-on products and <a shape="rect"
class="external-link"
href="http://www.ttmsolutions.com/Apache_Software/ActiveMQ_Reference_Guide.php"
rel="nofollow">reference guide</a> for ActiveMQ.</li><li>
<a shape="rect" class="external-link" href="http://tomitribe.com"
rel="nofollow">Tomitribe</a> are experts in Tomcat and ActiveMQ
integration, champions of Open Source and Java EE.  Tomitribe offers
consulting, training and support for TomEE, Tomcat, ActiveMQ, CXF and
more.</li><li><a shape="rect" class="external-link"
href="http://www.tytoease.com/activemq" rel="nofollow">TytoEASE</a> offers
support, consulting and training on enterprise ready open source projects
including ActiveMQ.   Support offerings are at three levels with
guaranteed SLA's. The company's consulting work is short term to help
troubleshoot, fine-tune, do architectural reviews or help with initial
design.  TytoEASE's focus is on the Enterprise with how customers
integrate open source with their current technologies.</li></ul></div>
+<div class="wiki-content maincontent"><h2
id="HowcanIgethelp-GettingHelp">Getting Help</h2><p>If you are experiencing
problems using ActiveMQ then please report your problem to our <a shape="rect"
class="external-link" href="http://issues.apache.org/activemq/browse/AMQ">Issue
Tracker</a>. You may also find it useful to discuss your issues with the
community on the <a shape="rect" href="discussion-forums.html">Discussion
Forums</a> or join one of our <a shape="rect" href="mailing-lists.html">Mailing
Lists</a>.</p><ul><li><a shape="rect" class="external-link"
href="http://issues.apache.org/activemq/browse/AMQ">Issue
Tracker</a></li><li><a shape="rect" href="discussion-forums.html">Discussion
Forums</a></li><li><a shape="rect" href="mailing-lists.html">Mailing
Lists</a></li><li><a shape="rect" href="faq.html">FAQ</a></li></ul><h3
id="HowcanIgethelp-Howtogethelp">How to get help</h3><p>Before you report a
problem you might want to read the <a shape="rect" href="faq.html">FAQ</a>.<br
cle
ar="none"> Whenever you are reporting a problem please be sure to include as
much information as possible; the more we know the more chance of a quicker
resolution.</p><ul><li>Which <a shape="rect" class="external-link"
href="http://activemq.apache.org/download.html">version</a> of
ActiveMQ</li><li>What platform of Java (e.g., Java SE 6 with JRE/<a
shape="rect" class="unresolved" href="#">JDK</a> 1.6.0 or J2SE 5 with JRE/<a
shape="rect" class="unresolved" href="#">JDK</a> 1.5.0)</li><li>Any particular
application/web server or container being used - if so what
version?</li><li>Stack traces generally really help! If in doubt include the
whole thing; often exceptions get wrapped in other exceptions and the exception
right near the bottom explains the actual error, not the first few lines at the
top. It's very easy for us to skim-read past unnecessary parts of a stack
trace.</li><li>Log output (e.g., <code>data/activemq.log</code>) can be useful
too; sometimes <a shape="rect" href="how
-do-i-change-the-logging.html">enabling DEBUG logging</a> can
help</li><li>Your code & configuration files are often useful</li></ul><h3
id="HowcanIgethelp-Howtogethelpfaster">How to get help faster</h3><p>We can
help you much quicker if you try the following</p><ul><li>Provide us with a
JUnit test case that demonstrates your issue. e.g. if you think you've found a
bug, can you create a test case to demonstrate the bug?</li><li><a shape="rect"
href="contributing.html">Submit a patch</a> fixing the bug! (We also buy you
beer when we meet you if you submit bug fixes <img class="emoticon
emoticon-smile"
src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/smile.png"
data-emoticon-name="smile" alt="(smile)"> )</li><li>For memory leaks or
performance related issues, if you can run a profiler on your test case and
attach the output as a file (or zipped file if it's huge) to the JIRA we can
normally fix things much fa
ster. e.g. you could run <a shape="rect" class="external-link"
href="http://java.sun.com/j2se/1.5.0/docs/tooldocs/share/jmap.html"
rel="nofollow">jmap</a>/<a shape="rect" class="external-link"
href="http://java.sun.com/javase/6/docs/technotes/tools/share/jhat.html"
rel="nofollow">jhat</a>, JProfiler or YourKit on your code and send us the
output. To find memory leaks it's quicker to resolve if you can tell us what
classes are taking up all of the RAM; we can normally figure out what's wrong
from that.</li></ul><h2 id="HowcanIgethelp-CommercialSupport">Commercial
Support</h2><p>This is an open source project, so the amount of time we have
available to help resolve your issue is often limited as all help is provided
on a volunteer basis. If you want to get priority help, need to get up to speed
quickly, require some training or mentoring, or need full 24 x 7 production
support you should contact a commercial company specializing in ActiveMQ
support such as...</p><ul><li><a shape="rect
" class="external-link" href="http://ameliant.com" rel="nofollow">Ameliant</a>
is a specialist consultancy based in London, UK that focuses on open source
integration and messaging using the Apache integration stack (ActiveMQ, Camel,
ServiceMix and CXF). The company delivers consulting targeted towards
development teams to address their messaging use cases; getting operations
teams up to speed on managing ActiveMQ deployments, with a particular focus on
security, high availability, and monitoring; and migrations between versions of
ActiveMQ, as well as from other JMS providers. Ameliant does not provide
production support for ActiveMQ.</li><li><a shape="rect" class="external-link"
href="http://www.openlogic.com/" rel="nofollow">Rogue Wave /
OpenLogic</a> <span style="line-height: 1.4285715;">has a dedicated team
of OSS experts offering </span><span style="line-height:
1.4285715;">round-the-clock Production Support with competitive SLAs
for </span><span style="line-hei
ght: 1.4285715;">troubleshooting ActiveMQ issues and outages.
Rogue </span><span style="line-height: 1.4285715;">Wave offers a
comprehensive week-long instructor-led training program for </span><span
style="line-height: 1.4285715;">developers and admins. Rogue Wave OpenLogic
also provides Architecture </span><span style="line-height:
1.4285715;">and Design Consulting, and a Developer Support contract to assist
in the </span><span style="line-height: 1.4285715;">development of
messaging applications.</span></li><li><a shape="rect" class="external-link"
href="http://www.redhat.com/products/jbossenterprisemiddleware/amq/"
rel="nofollow">Red Hat</a> offers JBoss A-MQ, a supported distribution of
Apache ActiveMQ, that include Enterprise Developer and Production Support, and
offer training and consultancy for enterprise deployments.</li><li><a
shape="rect" class="external-link" href="http://www.savoirtech.com"
rel="nofollow">Savoir Technologies, Inc</a> provides e
nterprise consulting, training and support for ActiveMQ and a host of other
Apache service containers. Savoir can provide best practice mentoring for
developing with ActiveMQ, as well as architectural/design reviews,
troubleshooting and SOA infrastructure implementations. Savoir's staff includes
some of the contributors of ActiveMQ who are on the ground consulting and are
familiar with real world implementations and issues.</li><li><a shape="rect"
class="external-link" href="http://www.ttmsolutions.com/" rel="nofollow">Total
Transaction Management (TTM)</a> provides ActiveMQ consulting and support, as
well as security and <a shape="rect" class="external-link"
href="http://www.ttmsolutions.com/Transactional_Software_Solutions/Active_Monitor_AMon.php/"
rel="nofollow">monitoring</a> add-on products and <a shape="rect"
class="external-link"
href="http://www.ttmsolutions.com/Apache_Software/ActiveMQ_Reference_Guide.php"
rel="nofollow">reference guide</a> for ActiveMQ.</li><li><a shape="r
ect" class="external-link" href="http://tomitribe.com"
rel="nofollow">Tomitribe</a> are experts in Tomcat and ActiveMQ
integration, champions of Open Source and Java EE.  Tomitribe offers
consulting, training and support for TomEE, Tomcat, ActiveMQ, CXF and
more.</li><li><a shape="rect" class="external-link"
href="http://www.tytoease.com/activemq" rel="nofollow">TytoEASE</a> offers
support, consulting and training on enterprise ready open source projects
including ActiveMQ.   Support offerings are at three levels with
guaranteed SLA's. The company's consulting work is short term to help
troubleshoot, fine-tune, do architectural reviews or help with initial
design.  TytoEASE's focus is on the Enterprise with how customers
integrate open source with their current technologies.</li></ul></div>
</td>
<td valign="top">
<div class="navigation">
Modified:
websites/production/activemq/content/how-can-i-get-the-source-code-from-subversion.html
==============================================================================
---
websites/production/activemq/content/how-can-i-get-the-source-code-from-subversion.html
(original)
+++
websites/production/activemq/content/how-can-i-get-the-source-code-from-subversion.html
Sat Jun 27 21:23:55 2015
@@ -73,14 +73,7 @@
<tr>
<td valign="top" width="100%">
<div class="wiki-content maincontent">
- <div class="aui-message problem shadowed information-macro">
- <p class="title">Warning</p>
- <span class="aui-icon icon-problem">Icon</span>
- <div class="message-content">
- <p>Apache ActiveMQ code repository was moved to
git, The old svn repo will not be updated.</p>
- </div>
- </div>
-<h1 id="HowcanIgetthesourcecodefromsubversion-ActiveMQ5">ActiveMQ 5</h1><h2
id="HowcanIgetthesourcecodefromsubversion-WebBrowsingofthegitRepo">Web Browsing
of the git Repo</h2><p>To browse via the web:</p><div class="panel"
style="border-width: 1px;"><div class="panelContent">
+<div class="confluence-information-macro
confluence-information-macro-warning"><p class="title">Warning</p><span
class="aui-icon aui-icon-small aui-iconfont-error
confluence-information-macro-icon"></span><div
class="confluence-information-macro-body"><p>Apache ActiveMQ code repository
was moved to git, The old svn repo will not be updated.</p></div></div><h1
id="HowcanIgetthesourcecodefromsubversion-ActiveMQ5">ActiveMQ 5</h1><h2
id="HowcanIgetthesourcecodefromsubversion-WebBrowsingofthegitRepo">Web Browsing
of the git Repo</h2><p>To browse via the web:</p><div class="panel"
style="border-width: 1px;"><div class="panelContent">
<p><a shape="rect" class="external-link"
href="https://git-wip-us.apache.org/repos/asf?p=activemq.git">https://git-wip-us.apache.org/repos/asf?p=activemq.git</a></p>
</div></div><h2
id="HowcanIgetthesourcecodefromsubversion-CheckingoutfromthegitRepo">Checking
out from the git Repo</h2><div class="panel" style="border-width: 1px;"><div
class="panelContent">
<p>git clone <a shape="rect" class="external-link"
href="https://git-wip-us.apache.org/repos/asf/activemq.git">https://git-wip-us.apache.org/repos/asf/activemq.git</a></p>
Modified:
websites/production/activemq/content/how-can-i-support-auto-reconnection.html
==============================================================================
---
websites/production/activemq/content/how-can-i-support-auto-reconnection.html
(original)
+++
websites/production/activemq/content/how-can-i-support-auto-reconnection.html
Sat Jun 27 21:23:55 2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- How can I support auto reconnection
@@ -92,7 +83,7 @@
<p>Just use the following connection URI (setting the brokerURL in the
ActiveMQConnectionFactory)</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
failover:tcp://host:port
]]></script>
</div></div>
Modified:
websites/production/activemq/content/how-can-i-support-priority-queues.html
==============================================================================
--- websites/production/activemq/content/how-can-i-support-priority-queues.html
(original)
+++ websites/production/activemq/content/how-can-i-support-priority-queues.html
Sat Jun 27 21:23:55 2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- How can I support priority queues
@@ -89,7 +80,7 @@
<p>In version 5.4 priority queues are supported. Both the message cursors and
the message stores (KahaDB and JDBC) support message priority. The support is
disabled by default so it needs to be be enabled using <a shape="rect"
href="per-destination-policies.html">per destination policies</a> through xml
configuration, in the example below, 'prioritizedMessages' is enabled for all
queues. </p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
<destinationPolicy>
<policyMap>
<policyEntries>
@@ -104,7 +95,7 @@
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
<destinationPolicy>
<policyMap>
<policyEntries>
@@ -119,7 +110,7 @@
<p>You can have say 100 consumers using a selector to find the high priority
stuff</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
JMSPriority > 6
]]></script>
</div></div>
@@ -127,7 +118,7 @@ JMSPriority > 6
<p>then have 50 consumers doing average or above</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
JMSPriority >= 4
]]></script>
</div></div>
Modified:
websites/production/activemq/content/how-do-distributed-queues-work.html
==============================================================================
--- websites/production/activemq/content/how-do-distributed-queues-work.html
(original)
+++ websites/production/activemq/content/how-do-distributed-queues-work.html
Sat Jun 27 21:23:55 2015
@@ -95,14 +95,8 @@
<p>A <a shape="rect" href="networks-of-brokers.html">Store and Forward Network
of Brokers</a> means the messages travel from broker to broker until they reach
a consumer; with each message being owned by a single broker at any point in
time. When a JMS producer sends a message to a JMS consumer, it may travel
through several brokers to reach its final destination. ActiveMQ uses <a
shape="rect" href="consumer-priority.html">Consumer Priority</a> so that local
JMS consumers are always higher priority than remote brokers in a store and
forward network.</p>
- <div class="aui-message hint shadowed information-macro">
- <span class="aui-icon icon-hint">Icon</span>
- <div class="message-content">
-
-<p>Note though that a store and forward network is not a solution for message
<a shape="rect" href="ha.html">HA</a>; if a broker fails in a Store and Forward
network, the messages owned by that broker remain inside the broker's
persistent store until the broker comes back online. If you need <a
shape="rect" href="ha.html">HA</a> of messages then you need to use
Master/Slave described above.</p>
- </div>
- </div>
-
+<div class="confluence-information-macro
confluence-information-macro-information"><span class="aui-icon aui-icon-small
aui-iconfont-info confluence-information-macro-icon"></span><div
class="confluence-information-macro-body">
+<p>Note though that a store and forward network is not a solution for message
<a shape="rect" href="ha.html">HA</a>; if a broker fails in a Store and Forward
network, the messages owned by that broker remain inside the broker's
persistent store until the broker comes back online. If you need <a
shape="rect" href="ha.html">HA</a> of messages then you need to use
Master/Slave described above.</p></div></div>
<p>Store and forward is often used in large networks where producers are on
one LAN and consumers are on another LAN and you wish to use a broker on each
LAN as a kind of network concentrator to minimise chattiness over the WAN
between them (and to minimise the number of connections required across the WAN
too). Similar uses of store and forward can be found when using firewalls or
SSL across certain networks etc. One other use case for store and forward
networks is if your OS does not support many sockets (and you can't reconfigure
that) you could use a store and forward network to connect massive numbers of
clients together in one logical network.</p>
Modified:
websites/production/activemq/content/how-do-i-avoid-maven-downloading-latest-jars.html
==============================================================================
---
websites/production/activemq/content/how-do-i-avoid-maven-downloading-latest-jars.html
(original)
+++
websites/production/activemq/content/how-do-i-avoid-maven-downloading-latest-jars.html
Sat Jun 27 21:23:55 2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- How do I avoid Maven downloading latest jars
@@ -84,14 +75,14 @@
<div class="wiki-content maincontent">
<p>You can use the -o switch (for offline mode) to avoid maven
auto-downloading new snapshot jars (e.g. the Geronimo jars at the time of
writing).</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
maven -o
]]></script>
</div></div>
<p>or to run a server go to the \assembly module and run</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
maven -o server
]]></script>
</div></div></div>
Modified:
websites/production/activemq/content/how-do-i-build-but-disable-the-unit-tests.html
==============================================================================
---
websites/production/activemq/content/how-do-i-build-but-disable-the-unit-tests.html
(original)
+++
websites/production/activemq/content/how-do-i-build-but-disable-the-unit-tests.html
Sat Jun 27 21:23:55 2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- How do I build but disable the unit tests
@@ -83,12 +74,12 @@
<td valign="top" width="100%">
<div class="wiki-content maincontent"><h2
id="HowdoIbuildbutdisabletheunittests-HowdoIbuildbutdisabletheunittests">How do
I build but disable the unit tests</h2>
-<p>The test cases in ActiveMQ can take a very long time to run! <img
class="emoticon emoticon-smile"
src="https://cwiki.apache.org/confluence/s/en_GB-1988229788/4109/76e0dbb30bc8580e459c201f3535d84f9283a9ac.1/_/images/icons/emoticons/smile.png"
data-emoticon-name="smile" alt="(smile)"></p>
+<p>The test cases in ActiveMQ can take a very long time to run! <img
class="emoticon emoticon-smile"
src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/smile.png"
data-emoticon-name="smile" alt="(smile)"></p>
<p>To disable this you can try the following</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
mvn install -Dmaven.test.skip=true
]]></script>
</div></div></div>
Modified:
websites/production/activemq/content/how-do-i-change-dispatch-policy.html
==============================================================================
--- websites/production/activemq/content/how-do-i-change-dispatch-policy.html
(original)
+++ websites/production/activemq/content/how-do-i-change-dispatch-policy.html
Sat Jun 27 21:23:55 2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- How do I change dispatch policy
@@ -97,7 +88,7 @@
ie.</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
<destinationPolicy>
<policyMap><policyEntries>
<policyEntry topic="COMMAND.>">
Modified: websites/production/activemq/content/how-do-i-change-the-logging.html
==============================================================================
--- websites/production/activemq/content/how-do-i-change-the-logging.html
(original)
+++ websites/production/activemq/content/how-do-i-change-the-logging.html Sat
Jun 27 21:23:55 2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- How do I change the logging
@@ -88,7 +79,7 @@
<p>You can disable the ActiveMQ logging by editing the
<strong>conf/log4j.properties</strong> file to disable all INFO level logging
for activemq by adding this line</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
log4j.logger.org.apache.activemq=WARN
]]></script>
</div></div>
@@ -96,7 +87,7 @@ log4j.logger.org.apache.activemq=WARN
<p>or to disable stdout logging all together change this line</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
log4j.rootLogger=INFO, stdout, out
]]></script>
</div></div>
@@ -104,7 +95,7 @@ log4j.rootLogger=INFO, stdout, out
<p>to</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
log4j.rootLogger=INFO, out
]]></script>
</div></div>
@@ -114,7 +105,7 @@ log4j.rootLogger=INFO, out
<p>The default logging level in ActiveMQ is INFO. This can be seen by starting
up the default ActiveMQ binary in a terminal. In doing so, you will see the
output shown below: </p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
$ ./bin/activemq
ACTIVEMQ_HOME: /Users/bsnyder/amq/apache-activemq-5.1.0
ACTIVEMQ_BASE: /Users/bsnyder/amq/apache-activemq-5.1.0
@@ -152,12 +143,12 @@ INFO FailoverTransport - S
<p>To change the ActiveMQ logging level from INFO to DEBUG while ActiveMQ is
running, start up jconsole, point to the ActiveMQ instance and navigate to the
Broker object's Operations tab as shown below: </p>
-<p><img class="confluence-embedded-image"
src="how-do-i-change-the-logging.data/reloadLog4jProperties1.png"
data-image-src="/confluence/download/attachments/35929/reloadLog4jProperties1.png?version=2&modificationDate=1224001802000&api=v2">
</p>
+<p><span class="confluence-embedded-file-wrapper"><img
class="confluence-embedded-image"
src="how-do-i-change-the-logging.data/reloadLog4jProperties1.png"
data-image-src="/confluence/download/attachments/35929/reloadLog4jProperties1.png?version=2&modificationDate=1224001802000&api=v2"
data-unresolved-comment-count="0" data-linked-resource-id="9148"
data-linked-resource-version="2" data-linked-resource-type="attachment"
data-linked-resource-default-alias="reloadLog4jProperties1.png"
data-base-url="https://cwiki.apache.org/confluence"
data-linked-resource-content-type="image/png"
data-linked-resource-container-id="35929"
data-linked-resource-container-version="7"></span> </p>
<p>To enable debug level logging in ActiveMQ, edit the
<code>conf/log4j.properties</code> file that is part of the ActiveMQ binary
distribution to disable INFO level logging and enable DEBUG level logging from
this: </p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
log4j.rootLogger=INFO, stdout, out
log4j.logger.org.apache.activemq.spring=WARN
log4j.logger.org.springframework=WARN
@@ -173,7 +164,7 @@ log4j.logger.org.apache.xbean.spring=WAR
<p>to this: </p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
#log4j.rootLogger=INFO, stdout, out
log4j.logger.org.apache.activemq.spring=WARN
log4j.logger.org.springframework=WARN
@@ -188,12 +179,12 @@ log4j.rootLogger=DEBUG, out, stdout
<p>Notice that the line <code>log4j.rootLogger=INFO, stdout, out</code> has
been commented out and the line <code>log4j.rootLogger=DEBUG, out,
stdout</code> has been uncommented. Save this change and then, in jconsole,
click the button named <strong>reloadLog4jProperties</strong> as shown below:
</p>
-<p><img class="confluence-embedded-image"
src="how-do-i-change-the-logging.data/reloadLog4jProperties2.png"
data-image-src="/confluence/download/attachments/35929/reloadLog4jProperties2.png?version=2&modificationDate=1224001802000&api=v2">
</p>
+<p><span class="confluence-embedded-file-wrapper"><img
class="confluence-embedded-image"
src="how-do-i-change-the-logging.data/reloadLog4jProperties2.png"
data-image-src="/confluence/download/attachments/35929/reloadLog4jProperties2.png?version=2&modificationDate=1224001802000&api=v2"
data-unresolved-comment-count="0" data-linked-resource-id="9147"
data-linked-resource-version="2" data-linked-resource-type="attachment"
data-linked-resource-default-alias="reloadLog4jProperties2.png"
data-base-url="https://cwiki.apache.org/confluence"
data-linked-resource-content-type="image/png"
data-linked-resource-container-id="35929"
data-linked-resource-container-version="7"></span> </p>
<p>After clicking the <strong>reloadLog4jProperties</strong> button, the
dialog pops up stating, 'Method successfully invoked'. This just lets you know
that the <code>reloadLog4jProperties</code> method was invoked to reload the
<code>conf/log4j.properties</code> file. Now notice in the terminal where
ActiveMQ is running that the logging that is being output is now DEBUG: </p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
INFO WebConsoleStarter - ActiveMQ WebConsole initialized.
INFO /admin - Initializing Spring FrameworkServlet
'dispatcher'
INFO log - ActiveMQ Console at
http://0.0.0.0:8161/admin
Modified:
websites/production/activemq/content/how-do-i-change-the-message-store-directory-for-an-embedded-broker.html
==============================================================================
---
websites/production/activemq/content/how-do-i-change-the-message-store-directory-for-an-embedded-broker.html
(original)
+++
websites/production/activemq/content/how-do-i-change-the-message-store-directory-for-an-embedded-broker.html
Sat Jun 27 21:23:55 2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- How do I change the message store directory for
an embedded broker.
@@ -86,7 +77,7 @@
<p>Example:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
java -Dactivemq.store.dir=/temp your.Application
]]></script>
</div></div></div>
Modified:
websites/production/activemq/content/how-do-i-configure-10s-of-1000s-of-queues-in-a-single-broker-.html
==============================================================================
---
websites/production/activemq/content/how-do-i-configure-10s-of-1000s-of-queues-in-a-single-broker-.html
(original)
+++
websites/production/activemq/content/how-do-i-configure-10s-of-1000s-of-queues-in-a-single-broker-.html
Sat Jun 27 21:23:55 2015
@@ -32,16 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushPlain.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- How do I configure 10s of 1000s of Queues in a
single broker ?
@@ -83,7 +73,7 @@
<tr>
<td valign="top" width="100%">
<div class="wiki-content maincontent">Scaling to tens of thousands of Queues
in a single broker is relatively straightforward - but requires some
configuration changes from the default.<h2
id="HowdoIconfigure10sof1000sofQueuesinasinglebroker?-ReducingThreads">Reducing
Threads</h2><p>With the default configuration, ActiveMQ is configured to use a
dispatch thread per Queue - you can use set the optimizedDispatch property on
the destination policy entry - see <a shape="rect"
href="per-destination-policies.html">configuring Queues</a>.</p><p>ActiveMQ can
optionally use internally a thread pool to control dispatching of messages -
but as a lot of deployment operating systems are good at handling a large
number of threads, this is off by default. To enable this option, either set
the ACTIVEMQ_OPTS to disable dedicated task runners in the start up script,
INSTALL_DIR/bin/activemq -e.g.</p><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[ACTIVEMQ_OPTS="-Xmx512M
-Dorg.apache.activemq.UseDedicatedTaskRunner=false"
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[ACTIVEMQ_OPTS="-Xmx512M
-Dorg.apache.activemq.UseDedicatedTaskRunner=false"
]]></script>
</div></div><p>or you can set ACTIVEMQ_OPTS in /etc/activemq.conf.</p><p>To
reduce the number of threads used for the transport - take a look at using the
NIO transport - see <a shape="rect"
href="configuring-transports.html">Configuring Transports</a></p><p>Here is an
<a shape="rect" class="external-link"
href="http://svn.apache.org/repos/asf/activemq/trunk/assembly/src/sample-conf/activemq-scalability.xml">example</a>
of this in use in one of the provided sample broker configuration
files.</p><h2
id="HowdoIconfigure10sof1000sofQueuesinasinglebroker?-ReducingMemoryConsumption">Reducing
Memory Consumption</h2><p>Reduce the memory used per thread - see <a
shape="rect" href="javalangoutofmemory.html">reducing memory
consumption</a></p><h2
id="HowdoIconfigure10sof1000sofQueuesinasinglebroker?-Reducenumberoffiledescriptors">Reduce
number of file descriptors</h2><p>ActiveMQ uses the amqPersistenceAdapter by
default for persistent messages. Unfortunately, this persistence adapter (as
well
as the kahaPersistenceAdapter) opens a file descriptor for each queue. When
creating large numbers of queues, you'll quickly run into the limit for your
OS.</p><p>You can either choose another <a shape="rect"
href="persistence.html">persistence option</a></p><p>or - try out the new <a
shape="rect" href="kahadb.html">KahaDB</a> in version 5.3 and higher</p><h2
id="HowdoIconfigure10sof1000sofQueuesinasinglebroker?-Increasethelimitonfiledescriptorsperprocess">Increase
the limit on file descriptors per process</h2><p>Try <a shape="rect"
class="external-link" href="http://tinyurl.com/o9qs2f" rel="nofollow">googling
for the OS you are using</a></p></div>
</td>
Modified:
websites/production/activemq/content/how-do-i-configure-automatic-reconnection.html
==============================================================================
---
websites/production/activemq/content/how-do-i-configure-automatic-reconnection.html
(original)
+++
websites/production/activemq/content/how-do-i-configure-automatic-reconnection.html
Sat Jun 27 21:23:55 2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- How do I configure automatic reconnection
@@ -88,7 +79,7 @@
<p>e.g. connecting to the URL</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
failover:tcp://host1:port1,tcp://host2:port2
]]></script>
</div></div>
Modified:
websites/production/activemq/content/how-do-i-configure-the-queues-i-want.html
==============================================================================
---
websites/production/activemq/content/how-do-i-configure-the-queues-i-want.html
(original)
+++
websites/production/activemq/content/how-do-i-configure-the-queues-i-want.html
Sat Jun 27 21:23:55 2015
@@ -72,14 +72,7 @@
<tbody>
<tr>
<td valign="top" width="100%">
-<div class="wiki-content maincontent"><p> </p><div class="aui-message
warning shadowed information-macro">
- <p class="title">Redirection Notice</p>
- <span class="aui-icon icon-warning">Icon</span>
- <div class="message-content">
- This page will redirect to <a shape="rect"
href="how-do-i-create-new-destinations.html">How do I create new
destinations</a>.
- </div>
- </div>
-
+<div class="wiki-content maincontent"><div class="confluence-information-macro
confluence-information-macro-note"><p class="title">Redirection Notice</p><span
class="aui-icon aui-icon-small aui-iconfont-warning
confluence-information-macro-icon"></span><div
class="confluence-information-macro-body">This page will redirect to <a
shape="rect" href="how-do-i-create-new-destinations.html">How do I create new
destinations</a>.</div></div>
<p>With ActiveMQ there is no real resaon to explicitly setup/configure the
queues you are gonna need. If you try to publish or subscribe from any queue or
topic it will be silently created on the fly.</p>
Modified:
websites/production/activemq/content/how-do-i-connect-to-one-of-a-number-of-message-brokers.html
==============================================================================
---
websites/production/activemq/content/how-do-i-connect-to-one-of-a-number-of-message-brokers.html
(original)
+++
websites/production/activemq/content/how-do-i-connect-to-one-of-a-number-of-message-brokers.html
Sat Jun 27 21:23:55 2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- How do I connect to one of a number of message
brokers
@@ -86,7 +77,7 @@
<p>You can specify a list of URLs to connect to (for example if you have
message brokers running on a number of machines). To specify a list of URLs,
use a comma separated list of URLs with a prefix of list:. e.g.</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
list:tcp://localhost:61699,tcp://localhost:61617,tcp://localhost:61698
]]></script>
</div></div>
Modified:
websites/production/activemq/content/how-do-i-consume-a-specific-message.html
==============================================================================
---
websites/production/activemq/content/how-do-i-consume-a-specific-message.html
(original)
+++
websites/production/activemq/content/how-do-i-consume-a-specific-message.html
Sat Jun 27 21:23:55 2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- How do I consume a specific message
@@ -90,7 +81,7 @@
<p>e.g. here is an example selector</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
JMSMessageID = 'abc'
]]></script>
</div></div>
Modified:
websites/production/activemq/content/how-do-i-create-new-destinations.html
==============================================================================
--- websites/production/activemq/content/how-do-i-create-new-destinations.html
(original)
+++ websites/production/activemq/content/how-do-i-create-new-destinations.html
Sat Jun 27 21:23:55 2015
@@ -91,18 +91,11 @@
<h3 id="HowdoIcreatenewdestinations-Limitingcreationofdestinations">Limiting
creation of destinations</h3>
<p>If you need to restrict access or creation of destinations then please use
the <a shape="rect" href="security.html">Security</a> option to disable
destinations being auto-created for certain users. </p>
- <div class="aui-message hint shadowed information-macro">
- <p class="title">Client side destination objects are not
the same as server side resources</p>
- <span class="aui-icon icon-hint">Icon</span>
- <div class="message-content">
-
+<div class="confluence-information-macro
confluence-information-macro-information"><p class="title">Client side
destination objects are not the same as server side resources</p><span
class="aui-icon aui-icon-small aui-iconfont-info
confluence-information-macro-icon"></span><div
class="confluence-information-macro-body">
<p>Note that the ActiveMQ Broker will only create server side resources for
destinations when messages are actually sent to them. So you can create as many
instances of ActiveMQTopic and ActiveMQQueue on a client without any real
overhead until you actually send messages to them on a broker. So a JMS client
creating a new ActiveMQQueue POJO does not mean you are creating server side
queue resources.</p>
<p>Think of the ActiveMQQueue and ActiveMQTopic classes as like java.net.URL.
They are just names which refer to server side resources which are auto-created
when they are used.<br clear="none">
-This means that different clients creating different ActiveMQQueue instances
will communicate with the same physical queue on a JMS broker if the name is
the same.</p>
- </div>
- </div>
-
+This means that different clients creating different ActiveMQQueue instances
will communicate with the same physical queue on a JMS broker if the name is
the same.</p></div></div>
<p>You can browse the currently available queues and topics using <a
shape="rect" href="jmx.html">JMX</a>. You can also use the <a shape="rect"
href="jmx.html">JMX</a> MBeans to create the destinations you require.</p></div>
</td>
Modified:
websites/production/activemq/content/how-do-i-define-a-local-address-and-local-port-for-tcp-or-ssl.html
==============================================================================
---
websites/production/activemq/content/how-do-i-define-a-local-address-and-local-port-for-tcp-or-ssl.html
(original)
+++
websites/production/activemq/content/how-do-i-define-a-local-address-and-local-port-for-tcp-or-ssl.html
Sat Jun 27 21:23:55 2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- How do I define a local address and local port
for TCP or SSL
@@ -82,7 +73,7 @@
<tr>
<td valign="top" width="100%">
<div class="wiki-content maincontent"><p>TCP based transport protocols
(including SSL) allow you to define the local address and local port for Socket
to use when it's created.<br clear="none"> This can be useful for clients that
reside on multi-homed machines or for clients operating in a DMZ, where only
pre-defined ports can be used.</p><p>To specify the local address and local
port, ActiveMQ supports the use of the path on the URI, e.g.</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[ssl://localhost:5666/localhost:60606
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[ssl://localhost:5666/localhost:60606
]]></script>
</div></div><p> </p><p>where the path following the forward slash
"localhost:60606" defines the local address and local port</p></div>
</td>
Modified: websites/production/activemq/content/how-do-i-edit-the-website.html
==============================================================================
--- websites/production/activemq/content/how-do-i-edit-the-website.html
(original)
+++ websites/production/activemq/content/how-do-i-edit-the-website.html Sat Jun
27 21:23:55 2015
@@ -78,17 +78,10 @@
<p>You can also click the <strong>edit</strong> button when viewing the
website which is located on the bottom of each page.</p>
- <div class="aui-message hint shadowed information-macro">
- <p class="title">Spam Prevention</p>
- <span class="aui-icon icon-hint">Icon</span>
- <div class="message-content">
-
+<div class="confluence-information-macro
confluence-information-macro-information"><p class="title">Spam
Prevention</p><span class="aui-icon aui-icon-small aui-iconfont-info
confluence-information-macro-icon"></span><div
class="confluence-information-macro-body">
<p>We have been attacked by spammers so we are running a spam-avoiding scheme.
So you have to ask to be added to the editing group of Confluence. This is
quick and easy to do.</p>
-<p>Just send a quick mail to the <a shape="rect"
href="discussion-forums.html">Discussion Forums</a> giving details of your
confluence username and we can grant you the necessary editing karma.</p>
- </div>
- </div>
-
+<p>Just send a quick mail to the <a shape="rect"
href="discussion-forums.html">Discussion Forums</a> giving details of your
confluence username and we can grant you the necessary editing
karma.</p></div></div>
<p>Note that after you've changed the wiki it is immediately rendered on the
<a shape="rect" class="external-link"
href="http://cwiki.apache.org/ACTIVEMQ/">http://cwiki.apache.org/ACTIVEMQ/</a>
site so you can test it out; then up to an hour or two later it is updated on
the Apache site.</p>
Modified:
websites/production/activemq/content/how-do-i-embed-a-broker-inside-a-connection.html
==============================================================================
---
websites/production/activemq/content/how-do-i-embed-a-broker-inside-a-connection.html
(original)
+++
websites/production/activemq/content/how-do-i-embed-a-broker-inside-a-connection.html
Sat Jun 27 21:23:55 2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- How do I embed a Broker inside a Connection
@@ -82,7 +73,7 @@
<tr>
<td valign="top" width="100%">
<div class="wiki-content maincontent"><p>In many messaging topologies there
are JMS Brokers (server side) and a JMS client side. Often it makes sense to
deploy a broker within your JVM. This allows you to optimise away a network
hop; making the networking of JMS as efficient as pure RMI, but with all the
usual JMS features of location independence, reliability, load balancing
etc.</p><p>There are various ways to embed a broker in ActiveMQ depending on if
you are using Java, Spring, XBean or using the ActiveMQConnectionFactory
.</p><h3 id="HowdoIembedaBrokerinsideaConnection-UsingexplicitJavacode">Using
explicit Java code</h3><p>The following Java code will create an embedded
broker</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[BrokerService broker = new BrokerService();
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[BrokerService broker = new BrokerService();
// configure the broker
broker.addConnector("tcp://localhost:61616");
@@ -90,7 +81,7 @@ broker.addConnector("tcp://localhos
broker.start();
]]></script>
</div></div><p>If you want to lazily bind the transport connector as part of
start(), useful when start() will block pending a store lock (as in a slave
start), you can use the following code</p><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[BrokerService broker = new BrokerService();
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[BrokerService broker = new BrokerService();
TransportConnector connector = new TransportConnector();
connector.setUri(new URI("tcp://localhost:61616"));
@@ -98,14 +89,14 @@ broker.addConnector(connector);
broker.start();
]]></script>
</div></div><p>In the same JVM clients can then use the <a shape="rect"
href="vm-transport-reference.html">vm:// transport</a> to connect to the
embedded broker - whilst external clients can use the <a shape="rect"
href="tcp-transport-reference.html">tcp:// protocol</a></p><p>If you have more
than one embedded broker, ensure that you give them a unique name and -
e.g.</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[BrokerService broker = new BrokerService();
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[BrokerService broker = new BrokerService();
// configure the broker
broker.setBrokerName("fred");
broker.addConnector("tcp://localhost:61616");
broker.start();
]]></script>
</div></div><p>Then if you want to connect to the broker named 'fred' from
within the same JVM, you can by using the uri
<strong>vm://fred</strong></p><p>It is possible to fully configure a broker
through application code e.g.</p><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[BrokerService broker = new BrokerService();
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[BrokerService broker = new BrokerService();
broker.setBrokerName("fred");
broker.setUseShutdownHook(false);
//Add plugin
@@ -116,23 +107,17 @@ connector.setDuplex(true);
broker.addConnector("tcp://localhost:61616");
broker.start();
]]></script>
-</div></div> <div class="aui-message warning shadowed information-macro">
- <span class="aui-icon icon-warning">Icon</span>
- <div class="message-content">
- <p>Please note that you should add plugins before
connectors or they will not be initialized</p>
- </div>
- </div>
-<p>For more details on the available properties you can specify, see the <a
shape="rect" class="external-link"
href="http://activemq.apache.org/maven/5.11.0/apidocs/org/apache/activemq/broker/BrokerService.html">BrokerService
javadoc</a></p><h3
id="HowdoIembedaBrokerinsideaConnection-UsingtheBrokerFactory">Using the
BrokerFactory</h3><p>There is a helper class called <a shape="rect"
class="external-link"
href="http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/broker/BrokerFactory.html">BrokerFactory</a>
which can be used to create a broker via URI for configuration.</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[BrokerService broker =
BrokerFactory.createBroker(new URI(someURI));
+</div></div><div class="confluence-information-macro
confluence-information-macro-note"><span class="aui-icon aui-icon-small
aui-iconfont-warning confluence-information-macro-icon"></span><div
class="confluence-information-macro-body"><p>Please note that you should add
plugins before connectors or they will not be initialized</p></div></div><p>For
more details on the available properties you can specify, see the <a
shape="rect" class="external-link"
href="http://activemq.apache.org/maven/5.11.0/apidocs/org/apache/activemq/broker/BrokerService.html">BrokerService
javadoc</a></p><h3
id="HowdoIembedaBrokerinsideaConnection-UsingtheBrokerFactory">Using the
BrokerFactory</h3><p>There is a helper class called <a shape="rect"
class="external-link"
href="http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/broker/BrokerFactory.html">BrokerFactory</a>
which can be used to create a broker via URI for configuration.</p><div
class="code panel pdl" style="border-width: 1px;
"><div class="codeContent panelContent pdl">
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[BrokerService broker =
BrokerFactory.createBroker(new URI(someURI));
]]></script>
</div></div><p>The available values of the URI are</p><div
class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1"
rowspan="1" class="confluenceTh"><p>URI scheme</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Example</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p>xbean:</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>xbean:activemq.xml</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>Searches the classpath (and file system) for an XML
document with the given URI (activemq.xml in this case) which will then be used
as the <a shape="rect" href="xml-configuration.html">Xml
Configuration</a></p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>broker:</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>broker:tcp://localhost:61616</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>Uses the <a shape="rect" h
ref="broker-configuration-uri.html">Broker Configuration URI</a> to confgure
the broker</p></td></tr></tbody></table></div><h3
id="HowdoIembedaBrokerinsideaConnection-UsingSpring">Using Spring</h3><p>There
is a factory bean that can refer to an external ActiveMQ XML configuration
file</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[<bean id="broker"
class="org.apache.activemq.xbean.BrokerFactoryBean">
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[<bean id="broker"
class="org.apache.activemq.xbean.BrokerFactoryBean">
<property name="config"
value="classpath:org/apache/activemq/xbean/activemq.xml" />
<property name="start" value="true" />
</bean>
]]></script>
</div></div><p>In this case the usual Spring
'classpath:org/apache/activemq/xbean/activemq.xml' resource mechanism is being
used so that the activemq.xml file would be found on the classpath by looking
inside all the directories on the classpath then looking for
'org/apache/activemq/xbean/activemq.xml'. You can of course change this to any
value you like. e.g. use classpath:activemq.xml if you just want to drop it in
a directory that is in the classpath; like WEB-INF/classes in a web
application.</p><p>If you wish you can use a URL instead using the
<strong>file:* or *http:</strong> prefixes. For more details see how <a
shape="rect" class="external-link"
href="http://static.springframework.org/spring/docs/1.2.x/reference/beans.html#context-functionality-resources"
rel="nofollow">Spring deals with resources</a></p><h3
id="HowdoIembedaBrokerinsideaConnection-UsingXBean">Using XBean</h3><p>If you
are already using <a shape="rect" class="external-link"
href="http://geronimo.apache.org/x
bean/">XBean</a> then you can just mix and match your Spring/XBean <a
shape="rect" class="external-link"
href="https://svn.apache.org/repos/asf/incubator/activemq/trunk/activemq-core/src/test/resources/org/apache/activemq/xbean/activemq.xml">XML
configuration</a> with ActiveMQ's configuration.</p><div class="code panel
pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[<beans
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.apache.org/schema/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -155,7 +140,7 @@ broker.start();
</beans>
]]></script>
</div></div><h3 id="HowdoIembedaBrokerinsideaConnection-UsingSpring2.0">Using
Spring 2.0</h3><p>If you are using Spring 2.0 and ActiveMQ 4.1 or later (and
xbean-spring 2.5 or later) you can embed the ActiveMQ broker XML inside any
regular Spring.xml file without requiring the above factory bean. e.g. here is
an <a shape="rect" class="external-link"
href="http://svn.apache.org/repos/asf/incubator/activemq/trunk/activemq-core/src/test/resources/spring-embedded-xbean.xml">example</a>
of a regular Spring XML file in Spring 2.0 which also configures a
broker.</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[<beans
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.apache.org/schema/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -216,10 +201,10 @@ broker.start();
</beans>
]]></script>
</div></div><h3
id="HowdoIembedaBrokerinsideaConnection-UsingActiveMQConnectionFactory">Using
ActiveMQConnectionFactory</h3><p>An embedded broker can also be created using
an ActiveMQConnectionFactory and using a vm connector as a uri. e.g.</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[ActiveMQConnectionFactory cf = new
ActiveMQConnectionFactory("vm://localhost?broker.persistent=false");
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[ActiveMQConnectionFactory cf = new
ActiveMQConnectionFactory("vm://localhost?broker.persistent=false");
]]></script>
</div></div><p>Use the query parameters "broker.<property>" to configure
the broker, where <property> matches the bean properties on the
BrokerService.</p><p>The broker will be created upon creation of the first
connection.</p><p>You can turn off auto creation by setting the create property
on the VM Transport to false:</p><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[ActiveMQConnectionFactory cf = new
ActiveMQConnectionFactory("vm://localhost?create=false");
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[ActiveMQConnectionFactory cf = new
ActiveMQConnectionFactory("vm://localhost?create=false");
]]></script>
</div></div></div>
</td>
Modified:
websites/production/activemq/content/how-do-i-enable-asynchronous-sending.html
==============================================================================
---
websites/production/activemq/content/how-do-i-enable-asynchronous-sending.html
(original)
+++
websites/production/activemq/content/how-do-i-enable-asynchronous-sending.html
Sat Jun 27 21:23:55 2015
@@ -32,15 +32,6 @@
</style>
<![endif]-->
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
- <link
href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' />
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js'
type='text/javascript'></script>
- <script
src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- How do I enable asynchronous sending
@@ -89,7 +80,7 @@
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
tcp://localhost:61616?jms.useAsyncSend=true
]]></script>
</div></div></div>