Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 93622F4F1 for ; Fri, 26 Apr 2013 14:07:32 +0000 (UTC) Received: (qmail 66294 invoked by uid 500); 26 Apr 2013 14:05:55 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 65602 invoked by uid 500); 26 Apr 2013 14:05:52 -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 60407 invoked by uid 99); 26 Apr 2013 14:01:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Apr 2013 14:01:47 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of christian.posta@gmail.com designates 209.85.215.52 as permitted sender) Received: from [209.85.215.52] (HELO mail-la0-f52.google.com) (209.85.215.52) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Apr 2013 14:01:41 +0000 Received: by mail-la0-f52.google.com with SMTP id fd20so3633464lab.11 for ; Fri, 26 Apr 2013 07:01:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=wHHpAe3zs7TjuOYnSnjr4Ygp2unhPyT/1NInXABmtMk=; b=QW/jiBg/o5yjgvmS+F9Sm9DzwzwRZEaZKHhziE5Ap98uqodZoCf8QIcPCPstjoX1XS 4Lbcqxr/mt+rdc9ZPjpXeRr0yk3rYfJuiZhEEIXL8wEhGubpvKLZ3IoHsFvZ7/XaS/+5 /DUvi5DZEEQz3Hme43/abc4ClTI0o9omWOH+05i8YdIzta2fruG4SsI4Yv4WdTUqmwsG N1xM4oTFeLG4jNSo6bl7vNo/qIMsyZ26V0YHTt2ubHIB8gGGUyukQvgSBEcCCFxP34rY S/stbsvX/+PIOvqpK78kl1yQqYiu1MTPqdP3wX6hVPyuvBtDLodf5BzvY0l3tuDbC3ET skCQ== MIME-Version: 1.0 X-Received: by 10.112.129.202 with SMTP id ny10mr12200568lbb.124.1366984880812; Fri, 26 Apr 2013 07:01:20 -0700 (PDT) Received: by 10.114.96.194 with HTTP; Fri, 26 Apr 2013 07:01:20 -0700 (PDT) In-Reply-To: <002901ce4202$5fea1ff0$1fbe5fd0$@com> References: <1366923592275-4666219.post@n4.nabble.com> <51799A79.4020808@gmail.com> <1366925226656-4666223.post@n4.nabble.com> <001901ce41fc$1b56cb00$52046100$@com> <1366926182082-4666225.post@n4.nabble.com> <002901ce4202$5fea1ff0$1fbe5fd0$@com> Date: Fri, 26 Apr 2013 07:01:20 -0700 Message-ID: Subject: Re: Is this possible with ActiveMQ? From: Christian Posta To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=047d7b3441d63bf8f304db43f89e X-Virus-Checked: Checked by ClamAV on apache.org --047d7b3441d63bf8f304db43f89e Content-Type: text/plain; charset=ISO-8859-1 How long can the consumer wait to get the higher priority message? 100K may not be what you want... or 85K still no good... but what's the number that's acceptable then? If you can accept "some number of messages" are allowed to come ahead of the higher priority message, then you can just use JMS priority... all of producer A's messages send with default priority... producer B send with high (9) priority... the "number of messages" in the equation can be controlled by you depending on consumer prefetch or cursor caching in the broker... On Thu, Apr 25, 2013 at 3:15 PM, Michael Black wrote: > Looks like you might be able to use the statistics plugin > It appears that you can query any queue and find out how many messages are > in it. > So if you can use fixed queue names this should work. > http://activemq.apache.org/statisticsplugin.html > > > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta --047d7b3441d63bf8f304db43f89e--