Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 27726 invoked from network); 27 Nov 2008 08:39:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Nov 2008 08:39:49 -0000 Received: (qmail 76796 invoked by uid 500); 27 Nov 2008 08:39:56 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 76572 invoked by uid 500); 27 Nov 2008 08:39:56 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 76561 invoked by uid 99); 27 Nov 2008 08:39:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Nov 2008 00:39:56 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of katcu.z@gmail.com designates 66.249.90.181 as permitted sender) Received: from [66.249.90.181] (HELO ik-out-1112.google.com) (66.249.90.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Nov 2008 08:38:30 +0000 Received: by ik-out-1112.google.com with SMTP id b32so737651ika.2 for ; Thu, 27 Nov 2008 00:39:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=PCX51uHZf9ClsQNT3YlmDiXRwSJHM7nEljcQ+HhtlXQ=; b=rl0lpYyw95qahdKDiYZQfr8odFboXV6AcSA8F+DYPHTvPqZ+J2NNmfiLJMA2qjtKEE pJCN44poUwMUgVO/VypsVuWiBPEqiIczDAyps8MfRfuqKHBPoiFg4MkL27rBimLECW7B Sk2xIZEFTjdebAibkiIb2tyNCrjmZ0s9SV84A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=jnNdBms8p+sHAN+XGI1vUoPjDcCLJhEeT1dAyKjuOEWDDILgGawJQscSAsZ9Jyqd2Y wQFulS5x2c0h39RHSkLsP6jxy0EHVqc0bcOYR3EWXH2Rey9wMM7YwYor5ZvN7pGLFDWb i/d71j569hS1e+LOiCZx2eSiIzdbM/vk/uv6A= Received: by 10.210.128.5 with SMTP id a5mr7130035ebd.151.1227775145413; Thu, 27 Nov 2008 00:39:05 -0800 (PST) Received: by 10.210.50.18 with HTTP; Thu, 27 Nov 2008 00:39:05 -0800 (PST) Message-ID: <517787cd0811270039n25bbdd50h2df78d72546bbe70@mail.gmail.com> Date: Thu, 27 Nov 2008 16:39:05 +0800 From: gz.lyn To: "Commons Users List" Subject: Re: Configuration Automatic Reloading In-Reply-To: <492E45F3.4020902@oliver-heger.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_40861_29353000.1227775145406" References: <517787cd0811262234u7871098fqdcd9e58ee69d4d9b@mail.gmail.com> <492E45F3.4020902@oliver-heger.de> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_40861_29353000.1227775145406 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Olver, My code looks like: > PropertiesConfiguration config = new > PropertiesConfiguration("config.properties"); > config.setReloadingStrategy(new FileChangedReloadingStrategy()); > *config.properties* > > foo = bar > include = distributors.properties > > *distributors.properties* > > dist.name = abc > dist.name = def > It works fine If I move the the key-values from *distributors.properties* to *config.properties*. On Thu, Nov 27, 2008 at 3:02 PM, Oliver Heger wrote: > gz.lyn schrieb: > > Hi, >> >> It seems changing the content of a included property file would not affect >> Config file Automatic Reloading? Or did I missed some steps? >> >> >> Thanks for answering, >> Jimmy >> >> Can you provide a short code fragment demonstrating how you setup your > configuration? > > Oliver > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > > -- Chrs, -Jimmy lin ------=_Part_40861_29353000.1227775145406--