You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by salemi <al...@udo.edu> on 2013/12/11 22:19:32 UTC
Does the selector in filteredDestination support modulus operator?
Hi,
I was wondering if the selector in filteredDestination support modulus
operator? According to the AMQ documentation it support SQL 92 and SQL 92
support modulus.
I am planing to use the following virtual destination and separate the
incoming messages to different queues.
We we need to process 200k messages per second:
<broker xmlns="http://activemq.apache.org/schema/core">
<destinationInterceptors>
<virtualDestinationInterceptor>
<virtualDestinations>
<compositeQueue name="MY.QUEUE">
<forwardTo>
<filteredDestination selector="hashvalue % 160 = 0"
queue="1"/>
<filteredDestination selector="hashvalue % 160 = 1"
queue="2"/>
...
<filteredDestination selector="hashvalue % 160 = 159"
queue="160"/>
</forwardTo>
</compositeQueue>
</virtualDestinations>
</virtualDestinationInterceptor>
</destinationInterceptors>
</broker>
--
View this message in context: http://activemq.2283324.n4.nabble.com/Does-the-selector-in-filteredDestination-support-modulus-operator-tp4675426.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.