Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EB17010402 for ; Thu, 29 Aug 2013 19:49:57 +0000 (UTC) Received: (qmail 146 invoked by uid 500); 29 Aug 2013 19:49:57 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 99817 invoked by uid 500); 29 Aug 2013 19:49:55 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 99508 invoked by uid 99); 29 Aug 2013 19:49:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Aug 2013 19:49:52 +0000 Date: Thu, 29 Aug 2013 19:49:52 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMQ-4700) Customize message eviction policy in a TOPIC NOT working MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-4700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13753975#comment-13753975 ] Timothy Bish commented on AMQ-4700: ----------------------------------- Can you create a JUnit test case to demonstrate what you are trying to accomplish with your strategy? > 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. > > > > > > > > > > > -- 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