Subha created AMQ-4700:
--------------------------

             Summary: Customize message eviction policy in a TOPIC NOT working
                 Key: AMQ-4700
                 URL: https://issues.apache.org/jira/browse/AMQ-4700
             Project: ActiveMQ
          Issue Type: Bug
            Reporter: Subha


I have to customize the eviction policy for a TOPIC so I changed activemq.xml 
file policy entry to have the entry of my class but it seems the customized 
class is not being called whenever a message is post and read from the topic. 

Any help would be much appreciated.    

The class highlighted here is implementing MessageEvictionStrategy interface 
and overriding the evictMessages  method to implement custom eviction policy.

I am using active mq version 5.7, JDk 1.7 and broker is running in a standalone 
manner.


<destinationPolicy>
            <policyMap>
              <policyEntries>
                <policyEntry topic=">" producerFlowControl="true">
                  
                             <messageEvictionStrategy>
<bean xmlns="http://www.springframework.org/schema/beans"; 
class="com.myframework.framework.messaging.LMBMessageEvictionStrategy" />
                  </messageEvictionStrategy>
                                           
                </policyEntry>
        </destinationPolicy>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to