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 5BF0910A52 for ; Thu, 1 Aug 2013 17:46:52 +0000 (UTC) Received: (qmail 30157 invoked by uid 500); 1 Aug 2013 17:46:51 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 29884 invoked by uid 500); 1 Aug 2013 17:46:51 -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 29873 invoked by uid 99); 1 Aug 2013 17:46:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Aug 2013 17:46:50 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.250.139 is neither permitted nor denied by domain of jw@yahoo-inc.com) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Aug 2013 17:46:45 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1V4wwq-0004Lf-1L for users@activemq.apache.org; Thu, 01 Aug 2013 10:46:00 -0700 Date: Thu, 1 Aug 2013 10:45:45 -0700 (PDT) From: Jake Choi To: users@activemq.apache.org Message-ID: <1375379145026-4670005.post@n4.nabble.com> In-Reply-To: References: <1375376342750-4670003.post@n4.nabble.com> Subject: Re: How to configure this combination of queue cursors? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Then the problem is, with persistent=false, I can't use the persistent adapter and it's always configured to be MemoryPersistentAdapter. ceposta wrote > 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 < > jw@ > > 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 -- View this message in context: http://activemq.2283324.n4.nabble.com/How-to-configure-this-combination-of-queue-cursors-tp4670003p4670005.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.