Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 80389 invoked from network); 24 Jun 2008 17:13:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jun 2008 17:13:25 -0000 Received: (qmail 22809 invoked by uid 500); 24 Jun 2008 17:13:25 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 22793 invoked by uid 500); 24 Jun 2008 17:13:25 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 22782 invoked by uid 99); 24 Jun 2008 17:13:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2008 10:13:25 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2008 17:12:33 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KBC4Z-0000tz-Ni for users@activemq.apache.org; Tue, 24 Jun 2008 10:12:51 -0700 Message-ID: <18095579.post@talk.nabble.com> Date: Tue, 24 Jun 2008 10:12:51 -0700 (PDT) From: Badri To: users@activemq.apache.org Subject: Re: create policyentry for temp topics In-Reply-To: <483328B3.7060209@hanik.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: badrinarayanan.doraiswamy@fxall.com References: <4824E20B.7070703@hanik.com> <4831E8F2.5020706@hanik.com> <17329027.post@talk.nabble.com> <4832E154.8060502@hanik.com> <17342325.post@talk.nabble.com> <483328B3.7060209@hanik.com> X-Virus-Checked: Checked by ClamAV on apache.org 1) Can you give more details & elaborate on the brokerfilter, configuration of policy entries? 2) Were any filters set such that the messages will get dropped only when they don't cater to some condition? An example is --> if message is of type Price, drop. If message is of type Trade, don't drop. Are there any filteredDestinations? 3) Does the plugin monitor based on topic name + destination? I have a case where topic PRICES.A1 for a consumer d1 needs to be monitored? Is it possible to set some rules such that messages are dropped for a particular topic + destination? Thanks for your time & reply. Filip Hanik - Dev Lists wrote: > > that's absolutely doable, what you'd need to do is set > > producerFlowControl="false" on your policy entries, > that's what we did. > > then we setup the pendingMessageLimitStrategy to 1000, and our problem > was that when a message was discarded it went to the DLQ and eventually > caused OOME. > > The BrokerFilter class (Broker interface) can let you do many different > things > > let me know if you wish to elaborate some more > > Filip > > Badri wrote: >> Thanks Filip for taking time & replying. >> >> My use case is I have 5 components in my application which are consumers >> to >> active mq & receive data through temporary topics. If 1 of the consumer >> becomes slow, it blocks the publisher. I was thinking of configuring in >> activemq.xml based on topic / destinations. I was planning to use >> "pendingMessageLimitStrategy - prefetchRatePendingMessageLimitStrategy >> & >> also eviction strategies". By doing this I am hoping that other fast >> consumers receive data. Do you think plugin filters could also make a >> difference since this is a data sensitive application? >> >> Thanks >> Badri >> >> >> >> Filip Hanik - Dev Lists wrote: >> >>> Sure Badri, >>> our use case that we were dropping messages on the broker, so they go to >>> the Dead Letter Queue (DLQ), >>> however, for temporary topics, we didn't want that to happen, and since >>> I wasn't able to configure a policy for temp topics where we could plug >>> in a discarding DLQ, then we just did it as a plugin. >>> >>> The configuration looks like >>> >>> >>> >> xmlns="http://www.springframework.org/schema/beans" >>> id="covalentDlqBroker" >>> class="com.covalent.activemq.discard.CovalentDLQBrokerPlugin"> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> The library and source code can be found here >>> http://people.apache.org/~fhanik/covalent-dlq.jar >>> >>> the nice thing with a broker plugin, is that you actually can control a >>> lot more than just DLQ :) >>> >>> hope this helps >>> Filip >>> >>> Badri wrote: >>> >>>> Hi Filip >>>> >>>> Can you give more details about the broker plugin filter? >>>> I also need to create policy entry for temporary topics. >>>> >>>> Thanks for your help & time. >>>> Badri >>>> >>>> >>>> Filip Hanik - Dev Lists wrote: >>>> >>>> >>>>> I couldn't get that to work properly, I even tried topic="ID>" since >>>>> that was the prefix, and didn't work either. >>>>> I worked around the problem by creating a broker plugin filter, and >>>>> doing my operations in there >>>>> >>>>> Filip >>>>> >>>>> Hiram Chirino wrote: >>>>> >>>>> >>>>>> I guess you want an entry for all topics or all queues right (since >>>>>> the actually names are dynamic)? >>>>>> >>>>>> One way to do it might be to use topic='>' since that would match all >>>>>> topics (temp topics are still topics). But I guess we should have >>>>>> something a little bette than that. >>>>>> >>>>>> On Fri, May 9, 2008 at 7:45 PM, Filip Hanik - Dev Lists >>>>>> wrote: >>>>>> >>>>>> >>>>>> >>>>>>> is there a way to create a >>>>>>> for temporary topics? >>>>>>> >>>>>>> Filip >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > > > -- View this message in context: http://www.nabble.com/create-policyentry-for-temp-topics-tp17158262p18095579.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.