activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r856027 - in /websites/production/activemq/content: cache/main.pageCache virtual-destinations.html
Date Tue, 26 Mar 2013 17:21:49 GMT
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>&gt;</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">&lt;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"&gt;
+
+  <span class="code-tag">&lt;bean class=<span class="code-quote">"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"</span>
/&gt;</span>
+
+  <span class="code-tag">&lt;broker xmlns=<span class="code-quote">"http://activemq.apache.org/schema/core"</span>&gt;</span>
+    <span class="code-tag">&lt;destinationInterceptors&gt;</span>
+      <span class="code-tag">&lt;virtualDestinationInterceptor&gt;</span>
+        <span class="code-tag">&lt;virtualDestinations&gt;</span>
+          <span class="code-tag">&lt;virtualTopic name=<span class="code-quote">"&gt;</span>"</span>
prefix=<span class="code-quote">"VirtualTopicConsumers.*."</span> selectorAware=<span
class="code-quote">"false"</span>/&gt;
+        <span class="code-tag">&lt;/virtualDestinations&gt;</span>
+      <span class="code-tag">&lt;/virtualDestinationInterceptor&gt;</span>
+    <span class="code-tag">&lt;/destinationInterceptors&gt;</span>
+
+  <span class="code-tag">&lt;/broker&gt;</span>
+
+<span class="code-tag">&lt;/beans&gt;</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>&lt;compositeQueue/&gt;</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">&lt;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"&gt;
+
+  <span class="code-tag">&lt;bean class=<span class="code-quote">"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"</span>
/&gt;</span>
+
+  <span class="code-tag">&lt;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>&gt;</span>
+    <span class="code-tag">&lt;destinationInterceptors&gt;</span>
+      <span class="code-tag">&lt;virtualDestinationInterceptor&gt;</span>
+        <span class="code-tag">&lt;virtualDestinations&gt;</span>
+          <span class="code-tag">&lt;compositeQueue name=<span class="code-quote">"MY.QUEUE"</span>&gt;</span>
+            <span class="code-tag">&lt;forwardTo&gt;</span>
+              <span class="code-tag">&lt;queue physicalName=<span class="code-quote">"FOO"</span>
/&gt;</span>
+              <span class="code-tag">&lt;topic physicalName=<span class="code-quote">"BAR"</span>
/&gt;</span>
+            <span class="code-tag">&lt;/forwardTo&gt;</span>
+          <span class="code-tag">&lt;/compositeQueue&gt;</span>
+        <span class="code-tag">&lt;/virtualDestinations&gt;</span>
+      <span class="code-tag">&lt;/virtualDestinationInterceptor&gt;</span>
+    <span class="code-tag">&lt;/destinationInterceptors&gt;</span>
+
+  <span class="code-tag">&lt;/broker&gt;</span>
+
+<span class="code-tag">&lt;/beans&gt;</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">&lt;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"&gt;
+
+  <span class="code-tag">&lt;bean class=<span class="code-quote">"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"</span>
/&gt;</span>
+
+  <span class="code-tag">&lt;broker xmlns=<span class="code-quote">"http://activemq.apache.org/schema/core"</span>&gt;</span>
+    <span class="code-tag">&lt;destinationInterceptors&gt;</span>
+      <span class="code-tag">&lt;virtualDestinationInterceptor&gt;</span>
+        <span class="code-tag">&lt;virtualDestinations&gt;</span>
+          <span class="code-tag">&lt;compositeQueue name=<span class="code-quote">"MY.QUEUE"</span>&gt;</span>
+            <span class="code-tag">&lt;forwardTo&gt;</span>
+              <span class="code-tag">&lt;filteredDestination selector=<span
class="code-quote">"odd = 'yes'"</span> queue=<span class="code-quote">"FOO"</span>/&gt;</span>
+              <span class="code-tag">&lt;filteredDestination selector=<span
class="code-quote">"i = 5"</span> topic=<span class="code-quote">"BAR"</span>/&gt;</span>
+            <span class="code-tag">&lt;/forwardTo&gt;</span>
+          <span class="code-tag">&lt;/compositeQueue&gt;</span>
+        <span class="code-tag">&lt;/virtualDestinations&gt;</span>
+      <span class="code-tag">&lt;/virtualDestinationInterceptor&gt;</span>
+    <span class="code-tag">&lt;/destinationInterceptors&gt;</span>
+
+  <span class="code-tag">&lt;/broker&gt;</span>
+
+<span class="code-tag">&lt;/beans&gt;</span>
+</pre>
+</div></div>
 
 
 <h2><a shape="rect" name="VirtualDestinations-AvoidingDuplicateMessageinaNetworkofBrokers"></a>Avoiding
Duplicate Message in a Network of Brokers</h2>



Mime
View raw message