activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r479695 - in /incubator/activemq/site: destination-features.html features.html virtual-destinations.html
Date Mon, 27 Nov 2006 17:27:52 GMT
Author: chirino
Date: Mon Nov 27 09:27:50 2006
New Revision: 479695

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

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

Modified: incubator/activemq/site/destination-features.html
URL: http://svn.apache.org/viewvc/incubator/activemq/site/destination-features.html?view=diff&rev=479695&r1=479694&r2=479695
==============================================================================
--- incubator/activemq/site/destination-features.html (original)
+++ incubator/activemq/site/destination-features.html Mon Nov 27 09:27:50 2006
@@ -177,8 +177,8 @@
 
 <UL class="alternate" type="square">
 	<LI><A href="web-console.html" title="Web Console">Web Console</A></LI>
-	<LI><A href="jca-container.html" title="JCA Container">JCA Container</A></LI>
 	<LI><A href="hermes-jms.html" title="Hermes Jms">Hermes Jms</A></LI>
+	<LI><A href="activemq-performance-module-users-manual.html" title="ActiveMQ Performance
Module Users Manual">Maven2 Performance Plugin</A></LI>
 	<LI><SPAN class="nobr"><A href="http://jakarta.apache.org/jmeter" title="Visit
page outside Confluence" rel="nofollow">JMeter<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></LI>
 </UL>
 
@@ -222,7 +222,6 @@
 <H3><A name="Navigation-Tests"></A>Tests</H3>
 
 <UL class="alternate" type="square">
-	<LI><A href="activemq-performance-module-users-manual.html" title="ActiveMQ Performance
Module Users Manual">Maven2 Performance Plugin</A></LI>
 	<LI><A href="integration-tests.html" title="Integration Tests">Integration Tests</A></LI>
 	<LI><A href="benchmark-tests.html" title="Benchmark Tests">Benchmark Tests</A></LI>
 	<LI><A href="jmeter-performance-tests.html" title="JMeter Performance Tests">JMeter
Performance Tests</A></LI>

Modified: incubator/activemq/site/features.html
URL: http://svn.apache.org/viewvc/incubator/activemq/site/features.html?view=diff&rev=479695&r1=479694&r2=479695
==============================================================================
--- incubator/activemq/site/features.html (original)
+++ incubator/activemq/site/features.html Mon Nov 27 09:27:50 2006
@@ -177,8 +177,8 @@
 
 <UL class="alternate" type="square">
 	<LI><A href="web-console.html" title="Web Console">Web Console</A></LI>
-	<LI><A href="jca-container.html" title="JCA Container">JCA Container</A></LI>
 	<LI><A href="hermes-jms.html" title="Hermes Jms">Hermes Jms</A></LI>
+	<LI><A href="activemq-performance-module-users-manual.html" title="ActiveMQ Performance
Module Users Manual">Maven2 Performance Plugin</A></LI>
 	<LI><SPAN class="nobr"><A href="http://jakarta.apache.org/jmeter" title="Visit
page outside Confluence" rel="nofollow">JMeter<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></LI>
 </UL>
 
@@ -222,7 +222,6 @@
 <H3><A name="Navigation-Tests"></A>Tests</H3>
 
 <UL class="alternate" type="square">
-	<LI><A href="activemq-performance-module-users-manual.html" title="ActiveMQ Performance
Module Users Manual">Maven2 Performance Plugin</A></LI>
 	<LI><A href="integration-tests.html" title="Integration Tests">Integration Tests</A></LI>
 	<LI><A href="benchmark-tests.html" title="Benchmark Tests">Benchmark Tests</A></LI>
 	<LI><A href="jmeter-performance-tests.html" title="JMeter Performance Tests">JMeter
Performance Tests</A></LI>

Modified: incubator/activemq/site/virtual-destinations.html
URL: http://svn.apache.org/viewvc/incubator/activemq/site/virtual-destinations.html?view=diff&rev=479695&r1=479694&r2=479695
==============================================================================
--- incubator/activemq/site/virtual-destinations.html (original)
+++ incubator/activemq/site/virtual-destinations.html Mon Nov 27 09:27:50 2006
@@ -177,8 +177,8 @@
 
 <UL class="alternate" type="square">
 	<LI><A href="web-console.html" title="Web Console">Web Console</A></LI>
-	<LI><A href="jca-container.html" title="JCA Container">JCA Container</A></LI>
 	<LI><A href="hermes-jms.html" title="Hermes Jms">Hermes Jms</A></LI>
+	<LI><A href="activemq-performance-module-users-manual.html" title="ActiveMQ Performance
Module Users Manual">Maven2 Performance Plugin</A></LI>
 	<LI><SPAN class="nobr"><A href="http://jakarta.apache.org/jmeter" title="Visit
page outside Confluence" rel="nofollow">JMeter<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></LI>
 </UL>
 
@@ -222,7 +222,6 @@
 <H3><A name="Navigation-Tests"></A>Tests</H3>
 
 <UL class="alternate" type="square">
-	<LI><A href="activemq-performance-module-users-manual.html" title="ActiveMQ Performance
Module Users Manual">Maven2 Performance Plugin</A></LI>
 	<LI><A href="integration-tests.html" title="Integration Tests">Integration Tests</A></LI>
 	<LI><A href="benchmark-tests.html" title="Benchmark Tests">Benchmark Tests</A></LI>
 	<LI><A href="jmeter-performance-tests.html" title="JMeter Performance Tests">JMeter
Performance Tests</A></LI>
@@ -341,13 +340,42 @@
 
 <P>You can use this technique for example to be able to watch a queue, by sending messages
sent to a queue to a notification topic.</P>
 
+<H3><A name="VirtualDestinations-Usingfiltereddestinations"></A>Using filtered
destinations</H3>
+
+<P>From Apache ActiveMQ <B>4.2</B> onwards you can now use selectors to
define virtual destinations.</P>
+
+<P>You may wish to create a virtual destination which forwards messages to multiple
destinations but applying a selector first to decide if the message really does have to go
to a particular destination.</P>
+
+<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="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;compositeQueue name=<SPAN class="code-quote">&quot;MY.QUEUE&quot;</SPAN>&gt;</SPAN>
+            <SPAN class="code-tag">&lt;forwardTo&gt;</SPAN>
+              <SPAN class="code-tag">&lt;filteredDestination selector=<SPAN
class="code-quote">&quot;odd = &apos;yes&apos;&quot;</SPAN> queue=<SPAN
class="code-quote">&quot;FOO&quot;</SPAN>/&gt;</SPAN>
+              <SPAN class="code-tag">&lt;filteredDestination selector=<SPAN
class="code-quote">&quot;i = 5&quot;</SPAN> topic=<SPAN class="code-quote">&quot;BAR&quot;</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>
 
-<P>Yes.  You have to make sure that the messages sent to the &apos;Consumer.*.VirtualTopic.&gt;&apos;
destination are not forwarded.  This can be done by configuring the network connector something
like:</P>
+<SPAN class="code-tag">&lt;/beans&gt;</SPAN></PRE>
+</DIV></DIV>
 
 
 <H2><A name="VirtualDestinations-AvoidingDuplicateMessageinaNetworkofBrokers"></A>Avoiding
Duplicate Message in a Network of Brokers</H2>
 
-<P>If you use Virtual Topics in a network of brokers, it is likely you will get duplicate
messages if you use the default network configuration.  This is because a network node will
not only forward message sent to the virtual topic, but also the associated physical queues.
 To fix this, you should disable forwarding messages on the associated physical queues.  </P>
+<P>You have to make sure that the messages sent to the <B>Consumer.&#42;.VirtualTopic.&gt;</B>
destination are not forwarded.  If you use Virtual Topics in a network of brokers, it is likely
you will get duplicate messages if you use the default network configuration.  This is because
a network node will not only forward message sent to the virtual topic, but also the associated
physical queues.  To fix this, you should disable forwarding messages on the associated physical
queues.  </P>
 
 <P>Here is an example of how to do that:</P>
 
@@ -369,8 +397,8 @@
     </DIV>
     <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 Oct 18, 2006
-                  &nbsp;(<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=9061&originalId=14275">view
change</A>)
+    last edited by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James
Strachan</A> on Nov 27, 2006
+                  &nbsp;(<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=9061&originalId=15166">view
change</A>)
               
       (<A href="http://goopen.org/confluence/pages/editpage.action?pageId=9061">edit
page</A>)
     </DIV>



Mime
View raw message