From users-return-32154-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Mon Oct 15 13:40:29 2012 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 07572DB75 for ; Mon, 15 Oct 2012 13:40:29 +0000 (UTC) Received: (qmail 68928 invoked by uid 500); 15 Oct 2012 13:40:28 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 68841 invoked by uid 500); 15 Oct 2012 13:40:28 -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 68826 invoked by uid 99); 15 Oct 2012 13:40:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Oct 2012 13:40:27 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gary.tully@gmail.com designates 74.125.82.45 as permitted sender) Received: from [74.125.82.45] (HELO mail-wg0-f45.google.com) (74.125.82.45) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Oct 2012 13:40:19 +0000 Received: by mail-wg0-f45.google.com with SMTP id dq12so3927489wgb.14 for ; Mon, 15 Oct 2012 06:39:58 -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=PU6wbm93Xa64K0YzReNNIDKs2PnBbmUBrX72duTkIzc=; b=yHL3keqaHqlTl0M6IZCK9dVd69SXcj0U6W+467LV1+1eQBAv76U4A6KDsfUCK3vjGV U7rkhgYQogFKc6YZa73yWTAd1vc/HaInrc1IT+QvgdlpKeliz9qObzucTeBguTUJP4Jp bNJqwYa22Oy/Poh8A87g9ItVX9WUXGoSadGdq9rpM6FtLMT+L3iZNAKR61jRU3SEJmN5 Nm1tKauuLvAPS28U6Z+NDquhm8oQJ7fSZUIqnY6No3EycOIq4ZxpE4fZAbTXAEpZ+Pft 3JvTb9GGd+X/dU5WVEFNt4JYHW2yjsF6g8x6JieU4KgAYCCXRg3Id4OanlQCMmnUDnpL Y2KA== MIME-Version: 1.0 Received: by 10.180.83.101 with SMTP id p5mr23980365wiy.2.1350308398637; Mon, 15 Oct 2012 06:39:58 -0700 (PDT) Received: by 10.194.33.135 with HTTP; Mon, 15 Oct 2012 06:39:58 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 Oct 2012 14:39:58 +0100 Message-ID: Subject: Re: File-based cursors, temporary files and data safety From: Gary Tully To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org yes. on a restart that is what happens, so long as the messages are persistent. The file cursor is a pending message cursor, so the messages are pending for a consumer. if the consumer goes away or the broker restarts, the messages are still pending from the store and are replayed through the file cursor, which can impact startup time. Typically using the default store based cursor is sufficient. The store cursor will use memory to cache pending messages as much as it can. On 11 October 2012 15:10, Gilles Harloux wrote: > Hi, > > I am designing a system around an embedded broker using file-based > cursors. I am trying to make sure I understand the way file-based > cursors work: Am I right in thinking that temporary files is > functionally the same as memory with respect to transactions and data > security? If the system was to crash and it somehow lost or corrupted > temporary files, would it be possible to restart and get those > messages (those that ended up in the temporary files) back from the > message store? > > TIA, -- http://redhat.com http://blog.garytully.com