activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mihaela.ion" <mihaela.ion2...@gmail.com>
Subject Re: Writing complex filters
Date Thu, 17 Feb 2011 16:50:52 GMT

Thank you for the good pointers. I am only interested in filters for topics.
I created a custom dispatch policy. However, I am not able to configure
properly the activemq.xml file. Following the example from
http://activemq.apache.org/how-do-i-change-dispatch-policy.html I used:
<destinationPolicy>
   <policyMap><policyEntries> 
      <policyEntry topic="COMMAND.>">
         <dispatchPolicy>
           <myDispatchPolicy />
         </dispatchPolicy>
         <subscriptionRecoveryPolicy>
            <noSubscriptionRecoveryPolicy />
         </subscriptionRecoveryPolicy>
      </policyEntry>
   </policyEntries></policyMap>
</destinationPolicy>
I tried to use <bean id="myDispatchPolicy"
class="filter.MyTopicDispatchPolicy"
xmlns="http://activemq.apache.org/schema/core"/> but I get an error. How
should I configure the file?
-- 
View this message in context: http://activemq.2283324.n4.nabble.com/Writing-complex-filters-tp3310736p3311149.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Mime
View raw message