Return-Path: X-Original-To: apmail-cocoon-dev-archive@www.apache.org Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7693F6C86 for ; Sun, 26 Jun 2011 14:21:36 +0000 (UTC) Received: (qmail 60952 invoked by uid 500); 26 Jun 2011 14:21:35 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 60846 invoked by uid 500); 26 Jun 2011 14:21:34 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 60839 invoked by uid 99); 26 Jun 2011 14:21:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jun 2011 14:21:34 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [84.14.33.41] (HELO mail.goojet.com) (84.14.33.41) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jun 2011 14:21:28 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.goojet.com (Postfix) with ESMTP id 247E21A002F9 for ; Sun, 26 Jun 2011 16:21:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at goojet.com Received: from mail.goojet.com ([127.0.0.1]) by localhost (mail.goojet [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NtMGwmaoqY+B for ; Sun, 26 Jun 2011 16:21:03 +0200 (CEST) Received: from poukram.local (62.113.193.77.rev.sfr.net [77.193.113.62]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.goojet.com (Postfix) with ESMTPSA id 301E21A002F8 for ; Sun, 26 Jun 2011 16:21:03 +0200 (CEST) Message-ID: <4E07404B.4000402@apache.org> Date: Sun, 26 Jun 2011 16:20:59 +0200 From: Sylvain Wallez User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; fr; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [C3] XSLTTransformer cache References: <4E00BDCE.3040803@apache.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Le 21/06/11 18:08, Simone Tripodi a écrit : > Hi again, > that's not log4j but ant[1], it is easy&smart enough that could be > imported& modified depending on our needs... Commons IO also has a file monitor that was written by Torsten : http://commons.apache.org/io/ There's also http://jnotify.sourceforge.net/ that uses native services such as inotify on Linux, which should be more efficient by avoiding polling, but I haven't tried it and it depends on native libraries. > And we could make it generic in the way we can reuse the same policy > also in all transformers that require an external resource to be load > (i.e. the XSchema validator) That's a very good idea. Checking the file at each and every use can lead to a lot of requests to the filesystem on a loaded system, to check files that actually don't move that often. So doing it in the background adds some complexity but can allow hot reloading on a live system without hurting much performances. Sylvain -- Sylvain Wallez - http://bluxte.net