Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 76346 invoked from network); 5 Apr 2005 00:07:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Apr 2005 00:07:37 -0000 Received: (qmail 52975 invoked by uid 500); 5 Apr 2005 00:07:32 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 52963 invoked by uid 500); 5 Apr 2005 00:07:32 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 52945 invoked by uid 99); 5 Apr 2005 00:07:31 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from postfix4-1.free.fr (HELO postfix4-1.free.fr) (213.228.0.62) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 04 Apr 2005 17:07:30 -0700 Received: from [82.229.148.13] (did75-9-82-229-148-13.fbx.proxad.net [82.229.148.13]) by postfix4-1.free.fr (Postfix) with ESMTP id 0D44930D559 for ; Tue, 5 Apr 2005 00:16:53 +0200 (CEST) Message-ID: <4251BCD5.8050902@apache.org> Date: Tue, 05 Apr 2005 00:16:53 +0200 From: Emmanuel Bourg User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: fr, en-us, en MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: Configuration - Reload Strategy in j2ee containers References: <4251B5FE.6080606@gmail.com> In-Reply-To: <4251B5FE.6080606@gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello Qingtian, a reloading strategy is passive, it doesn't spawn a thread to monitor the file, instead it checks if the file changed everytime a property is accessed. So just use it as a replacement for java.util.Properties. Emmanuel Bourg WANG Qingtian wrote: > Hi, > > Is the reload strategy implemented by creating a thread that > periodically checks the time stamp of the configuration file? If so, how > do I make sure that thread is started/stopped properly when I use it in > a j2ee container? Like, will the thread be killed when I shut down the > web/ejb container? What is the "best practice" of using "configuration" > in a j2ee container? > > Thanks a lot for your help!!! > Qingtian --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org