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 6A341109D7 for ; Thu, 1 Aug 2013 17:31:56 +0000 (UTC) Received: (qmail 84573 invoked by uid 500); 1 Aug 2013 17:31:55 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 82507 invoked by uid 500); 1 Aug 2013 17:31:49 -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 82486 invoked by uid 99); 1 Aug 2013 17:31:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Aug 2013 17:31:47 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.posta@gmail.com designates 209.85.217.176 as permitted sender) Received: from [209.85.217.176] (HELO mail-lb0-f176.google.com) (209.85.217.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Aug 2013 17:31:43 +0000 Received: by mail-lb0-f176.google.com with SMTP id w10so1705189lbi.7 for ; Thu, 01 Aug 2013 10:31:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=DMzz3HjLKZnme0n+NpsA8zevQhOQuOkJB9C0exB9NZ4=; b=NlssmXeXqJ1volb/AjHwjtu/NYNbvKApCJO84VMc5SzLeJUMHPQ/gYohopNR6YngUs 0e9aK2P5Y/IxZHHNJJ/awfCfVhC4ECPSNi6vKbSQQey5E+A596urstqCNvBCZSdW+4H3 3BRFEG2aMicVodXtrfy/zvxxfhSwsHL7RtrsxgNvi/rzBT3DqVPpyc4BzmvV/Tj0AWnu xIQ8+aha54H1poC/Jd+ZsHmgLlluq6G80x1x/xbzd1YArgxrYBomold8RPyvv0yR9opL 7AxnggyDVVs1V1s8ZcyrHKA5g2dvil1A1R8wIsb4JNmlltkFn29Ypx0xRxNBC5lr7CjI 7E0Q== MIME-Version: 1.0 X-Received: by 10.152.22.65 with SMTP id b1mr1229782laf.46.1375378281768; Thu, 01 Aug 2013 10:31:21 -0700 (PDT) Received: by 10.114.2.239 with HTTP; Thu, 1 Aug 2013 10:31:21 -0700 (PDT) In-Reply-To: <1375376342750-4670003.post@n4.nabble.com> References: <1375376342750-4670003.post@n4.nabble.com> Date: Thu, 1 Aug 2013 10:31:21 -0700 Message-ID: Subject: Re: How to configure this combination of queue cursors? From: Christian Posta To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=089e0158b92aeaaac804e2e6356e X-Virus-Checked: Checked by ClamAV on apache.org --089e0158b92aeaaac804e2e6356e Content-Type: text/plain; charset=ISO-8859-1 just set persistent=false to force non-persistent messages to use VMPendingMessageCursor the default for the persistent part is QueueStorePrefetch On Thu, Aug 1, 2013 at 9:59 AM, Jake Choi wrote: > ActiveMQ 5.7 (embedded broker only with activemq-core-5.7.0.jar) > --- > > I couldn't seem find a way to configure the following combination of > pending > message cursors for a certain queue: > > queue cursor > non-persistent cursor => VMPendingMessageCursor > persistent cursor => QueueStorePrefetch > > From my understanding, there are 2 factors through that I can tweak the > types of PendingMessageCursor for both non-persistent and persistent > messages: BrokerService#isPersistent && PolicyEntry#setPendingQueuePolicy, > and I couldn't find a way to make the above combination. > > FYI, the requirement is that, for the queues, I want per-destination memory > limit + PFC for non-persistent messaging while leaving it to use the > back-ed > persistent store & store-based cursor for the persistent messaging. > > Thanks, > Jake > > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/How-to-configure-this-combination-of-queue-cursors-tp4670003.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta --089e0158b92aeaaac804e2e6356e--