You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2006/07/27 17:10:03 UTC

svn commit: r426097 - /incubator/activemq/site/virtual-destinations.html

Author: chirino
Date: Thu Jul 27 08:10:02 2006
New Revision: 426097

URL: http://svn.apache.org/viewvc?rev=426097&view=rev
Log:
Latest export from confluence

Modified:
    incubator/activemq/site/virtual-destinations.html

Modified: incubator/activemq/site/virtual-destinations.html
URL: http://svn.apache.org/viewvc/incubator/activemq/site/virtual-destinations.html?rev=426097&r1=426096&r2=426097&view=diff
==============================================================================
--- incubator/activemq/site/virtual-destinations.html (original)
+++ incubator/activemq/site/virtual-destinations.html Thu Jul 27 08:10:02 2006
@@ -304,6 +304,30 @@
 
 <P>We can now have a pool of consumers for each system which then compete for messages for systems A or B such that all the messages for system A are processed exactly once and similarly for system B.</P>
 
+<H3><A name="VirtualDestinations-Customizingtheoutoftheboxdefaults"></A>Customizing the out of the box defaults</H3>
+
+<P>The out of the box defaults are described above. Namely that the only virtual topics available must be within the <B>VirtualTopics.&gt;</B> nsmespace and that the consume queues are named <B>Consumer.</B>.VirtualTopics.&gt;*.</P>
+
+<P>You can configure this to use whatever naming convention you wish. The following <SPAN class="nobr"><A href="https://svn.apache.org/repos/asf/incubator/activemq/trunk/activemq-core/src/test/resources/org/apache/activemq/broker/virtual/global-virtual-topics.xml" title="Visit page outside Confluence" rel="nofollow">example<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN> shows how to make all topics virtual topics. Note that making a topic virtual does add a small CPU overhead when sending messages to the topic but it is fairly small.</P>
+
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag">&lt;beans&gt;</SPAN>
+
+  <SPAN class="code-tag">&lt;bean class=<SPAN class="code-quote">&quot;org.springframework.beans.factory.config.PropertyPlaceholderConfigurer&quot;</SPAN>/&gt;</SPAN>
+
+  <SPAN class="code-tag">&lt;broker xmlns=<SPAN class="code-quote">&quot;http://activemq.org/config/1.0&quot;</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">&quot;&gt;</SPAN>&quot;</SPAN> prefix=<SPAN class="code-quote">&quot;VirtualTopicConsumers.*.&quot;</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>
 </DIV>
           
                   </DIV>
@@ -315,7 +339,7 @@
     <DIV id="site-footer">
           Added by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James Strachan</A>,
     last edited by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James Strachan</A> on Jul 27, 2006
-                  &nbsp;(<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=9061&originalId=9284">view change</A>)
+                  &nbsp;(<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=9061&originalId=9293">view change</A>)
               
       (<A href="http://goopen.org/confluence/pages/editpage.action?pageId=9061">edit page</A>)
     </DIV>