Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 59821 invoked from network); 6 Apr 2005 12:21:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Apr 2005 12:21:53 -0000 Received: (qmail 15978 invoked by uid 500); 6 Apr 2005 12:21:45 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 15950 invoked by uid 500); 6 Apr 2005 12:21:45 -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 15937 invoked by uid 99); 6 Apr 2005 12:21:45 -0000 X-ASF-Spam-Status: No, hits=4.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,FORGED_MUA_OUTLOOK,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jmguillemette@hotmail.com designates 65.54.161.79 as permitted sender) Received: from bay106-dav7.bay106.hotmail.com (HELO hotmail.com) (65.54.161.79) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 06 Apr 2005 05:21:43 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 6 Apr 2005 05:21:42 -0700 Message-ID: Received: from 65.54.161.202 by BAY106-DAV7.phx.gbl with DAV; Wed, 06 Apr 2005 12:21:42 +0000 X-Originating-IP: [65.54.161.202] X-Originating-Email: [jmguillemette@hotmail.com] X-Sender: jmguillemette@hotmail.com From: "Jamie Guillemette" To: "Jakarta Commons Users List" References: <4253CF34.4000506@apache.org> Subject: Re: [configuration] - save not working..? Date: Wed, 6 Apr 2005 08:19:47 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-OriginalArrivalTime: 06 Apr 2005 12:21:42.0457 (UTC) FILETIME=[30E8CA90:01C53AA3] X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hey Emmanuel, here is how i load the config. [code] public PropertiesConfiguration loadPropertyConfiguration(String configFileName)throws ConfigurationException{ URL configURL = this.getClass().getResource(configFileName); return new PropertiesConfiguration(configURL); } [/code] ----- Original Message ----- From: "Emmanuel Bourg" To: "Jakarta Commons Users List" Sent: Wednesday, April 06, 2005 7:59 AM Subject: Re: [configuration] - save not working..? > Hi Jamies, could you show us how the configuration is loaded ? > > Emmanuel Bourg > > > Jamie Guillemette wrote: >> Hi Guys, >> >> Was playing with the commons-configuration project last night and for the >> life of me was unable to successfully save configuration changes. No >> exceptions are thrown but the data physically remains unchanged in the >> properties file. >> >> [code] >> >> public void set(Object value)throws ConfigurationException { >> config.setProperty("name.first",value); >> config.save(); >> config.reload(); >> } >> >> [/code] >> >> where config is : private PropertiesConfiguration config; >> that is successuflly loaded and returns values from the properties file >> using >> >> [code] >> public Object get() { >> return config.getString("name.first"); } >> [/code] >> >> Anyone know if this is a know bug ? >> >> Thanks >> J. >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org