Author: buildbot
Date: Tue Mar 26 17:21:48 2013
New Revision: 856027
Log:
Production update by buildbot for activemq
Modified:
websites/production/activemq/content/cache/main.pageCache
websites/production/activemq/content/virtual-destinations.html
Modified: websites/production/activemq/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/activemq/content/virtual-destinations.html
==============================================================================
--- websites/production/activemq/content/virtual-destinations.html (original)
+++ websites/production/activemq/content/virtual-destinations.html Tue Mar 26
17:21:48 2013
@@ -105,7 +105,30 @@
<p>You can configure this to use whatever naming convention you wish. The
following <a shape="rect" class="external-link"
href="https://svn.apache.org/repos/asf/incubator/activemq/trunk/activemq-unit-tests/src/test/resources/org/apache/activemq/broker/virtual/global-virtual-topics.xml">example</a>
shows how to make all topics virtual topics. The example below is using the
name <b>></b> to indicate 'match all topics'. You could use this wildcard to
apply different virtual topic policies in different hierarchies.</p>
-<div class="error"><span class="error">Error formatting macro: snippet:
java.lang.IndexOutOfBoundsException: Index: 20, Size: 20</span> </div>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
+<pre class="code-xml"><beans
+ xmlns=<span
class="code-quote">"http://www.springframework.org/schema/beans"</span>
+ <span class="code-keyword">xmlns:amq</span>=<span
class="code-quote">"http://activemq.apache.org/schema/core"</span>
+ <span class="code-keyword">xmlns:xsi</span>=<span
class="code-quote">"http://www.w3.org/2001/XMLSchema-instance"</span>
+ xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+ http://activemq.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core.xsd">
+
+ <span class="code-tag"><bean class=<span
class="code-quote">"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"</span>
/></span>
+
+ <span class="code-tag"><broker xmlns=<span
class="code-quote">"http://activemq.apache.org/schema/core"</span>></span>
+ <span class="code-tag"><destinationInterceptors></span>
+ <span class="code-tag"><virtualDestinationInterceptor></span>
+ <span class="code-tag"><virtualDestinations></span>
+ <span class="code-tag"><virtualTopic name=<span
class="code-quote">"></span>"</span> prefix=<span
class="code-quote">"VirtualTopicConsumers.*."</span> selectorAware=<span
class="code-quote">"false"</span>/>
+ <span class="code-tag"></virtualDestinations></span>
+ <span class="code-tag"></virtualDestinationInterceptor></span>
+ <span class="code-tag"></destinationInterceptors></span>
+
+ <span class="code-tag"></broker></span>
+
+<span class="code-tag"></beans></span>
+</pre>
+</div></div>
<p>Note that making a topic virtual does add a small CPU overhead when sending
messages to the topic but it is fairly small. From version <b>5.4</b>, dispatch
from virtual topics to subscription queues can be <b>selectorAware</b> such
that only messages that match one of the existing subscribers are actually
dispatched. Using this option prevents the build up of unmatched messages when
selectors are used by exclusive consumers.</p>
@@ -115,7 +138,35 @@
<p>The following <a shape="rect" class="external-link"
href="http://svn.apache.org/repos/asf/incubator/activemq/trunk/activemq-unit-tests/src/test/resources/org/apache/activemq/broker/virtual/composite-queue.xml">example</a>
shows how to set up a <b><compositeQueue/></b> element in the XML
configuration so that when a message is sent to <tt>MY.QUEUE</tt> then it is
really forwarded to the physical queue <tt>FOO</tt> and the topic
<tt>BAR</tt>.</p>
-<div class="error"><span class="error">Error formatting macro: snippet:
java.lang.IndexOutOfBoundsException: Index: 20, Size: 20</span> </div>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
+<pre class="code-xml"><beans
+ xmlns=<span
class="code-quote">"http://www.springframework.org/schema/beans"</span>
+ <span class="code-keyword">xmlns:amq</span>=<span
class="code-quote">"http://activemq.apache.org/schema/core"</span>
+ <span class="code-keyword">xmlns:xsi</span>=<span
class="code-quote">"http://www.w3.org/2001/XMLSchema-instance"</span>
+ xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+ http://activemq.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core.xsd">
+
+ <span class="code-tag"><bean class=<span
class="code-quote">"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"</span>
/></span>
+
+ <span class="code-tag"><broker persistent=<span
class="code-quote">"false"</span> useJmx=<span
class="code-quote">"false"</span> xmlns=<span
class="code-quote">"http://activemq.apache.org/schema/core"</span>></span>
+ <span class="code-tag"><destinationInterceptors></span>
+ <span class="code-tag"><virtualDestinationInterceptor></span>
+ <span class="code-tag"><virtualDestinations></span>
+ <span class="code-tag"><compositeQueue name=<span
class="code-quote">"MY.QUEUE"</span>></span>
+ <span class="code-tag"><forwardTo></span>
+ <span class="code-tag"><queue physicalName=<span
class="code-quote">"FOO"</span> /></span>
+ <span class="code-tag"><topic physicalName=<span
class="code-quote">"BAR"</span> /></span>
+ <span class="code-tag"></forwardTo></span>
+ <span class="code-tag"></compositeQueue></span>
+ <span class="code-tag"></virtualDestinations></span>
+ <span class="code-tag"></virtualDestinationInterceptor></span>
+ <span class="code-tag"></destinationInterceptors></span>
+
+ <span class="code-tag"></broker></span>
+
+<span class="code-tag"></beans></span>
+</pre>
+</div></div>
<p>By default, subscribers cannot consume messages directly from a composite
queue or topic - it is a logical construct only. Given the configuration above,
subscribers can only consume messages from <tt>FOO</tt> and <tt>BAR</tt>; but
not <tt>MY.QUEUE</tt>.</p>
@@ -141,7 +192,35 @@
<p>The following example shows how a message sent to the virtual destination
<b>MY.QUEUE</b> will be forwarded to <b>FOO</b> and <b>BAR</b> if the selectors
match</p>
-<div class="error"><span class="error">Error formatting macro: snippet:
java.lang.IndexOutOfBoundsException: Index: 20, Size: 20</span> </div>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
+<pre class="code-xml"><beans
+ xmlns=<span
class="code-quote">"http://www.springframework.org/schema/beans"</span>
+ <span class="code-keyword">xmlns:amq</span>=<span
class="code-quote">"http://activemq.apache.org/schema/core"</span>
+ <span class="code-keyword">xmlns:xsi</span>=<span
class="code-quote">"http://www.w3.org/2001/XMLSchema-instance"</span>
+ xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+ http://activemq.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core.xsd">
+
+ <span class="code-tag"><bean class=<span
class="code-quote">"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"</span>
/></span>
+
+ <span class="code-tag"><broker xmlns=<span
class="code-quote">"http://activemq.apache.org/schema/core"</span>></span>
+ <span class="code-tag"><destinationInterceptors></span>
+ <span class="code-tag"><virtualDestinationInterceptor></span>
+ <span class="code-tag"><virtualDestinations></span>
+ <span class="code-tag"><compositeQueue name=<span
class="code-quote">"MY.QUEUE"</span>></span>
+ <span class="code-tag"><forwardTo></span>
+ <span class="code-tag"><filteredDestination selector=<span
class="code-quote">"odd = 'yes'"</span> queue=<span
class="code-quote">"FOO"</span>/></span>
+ <span class="code-tag"><filteredDestination selector=<span
class="code-quote">"i = 5"</span> topic=<span
class="code-quote">"BAR"</span>/></span>
+ <span class="code-tag"></forwardTo></span>
+ <span class="code-tag"></compositeQueue></span>
+ <span class="code-tag"></virtualDestinations></span>
+ <span class="code-tag"></virtualDestinationInterceptor></span>
+ <span class="code-tag"></destinationInterceptors></span>
+
+ <span class="code-tag"></broker></span>
+
+<span class="code-tag"></beans></span>
+</pre>
+</div></div>
<h2><a shape="rect"
name="VirtualDestinations-AvoidingDuplicateMessageinaNetworkofBrokers"></a>Avoiding
Duplicate Message in a Network of Brokers</h2>