Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1BA3686CE for ; Sat, 3 Sep 2011 05:49:03 +0000 (UTC) Received: (qmail 47764 invoked by uid 500); 3 Sep 2011 05:48:56 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 47381 invoked by uid 500); 3 Sep 2011 05:48:43 -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 47369 invoked by uid 99); 3 Sep 2011 05:48:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Sep 2011 05:48:40 +0000 X-ASF-Spam-Status: No, hits=3.3 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.139.213.150] (HELO nm5-vm0.bullet.mail.bf1.yahoo.com) (98.139.213.150) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 03 Sep 2011 05:48:29 +0000 Received: from [98.139.214.32] by nm5.bullet.mail.bf1.yahoo.com with NNFMP; 03 Sep 2011 05:48:07 -0000 Received: from [98.139.212.226] by tm15.bullet.mail.bf1.yahoo.com with NNFMP; 03 Sep 2011 05:48:07 -0000 Received: from [127.0.0.1] by omp1035.mail.bf1.yahoo.com with NNFMP; 03 Sep 2011 05:48:07 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 703779.2837.bm@omp1035.mail.bf1.yahoo.com Received: (qmail 54835 invoked by uid 60001); 3 Sep 2011 05:48:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1315028886; bh=VHkQ8vgWpE3YuF3ePNPwytvdJ8sX+aVsLfaPzO4m/ck=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=KjOxRi37y7AkrIeWJ08qiYy+VMRo4B0ftbO1IVYr7y7X8yCTK8aFHKBkKGzuN4nrIzInJ1axfi8CM1UNKb9tISs7ZTrFJKz4v8+5YKo9RV3RY4qR1sgyvO/V//oI2HGqPLZEewuBclwMnOA1LhZxW/w1ZBdrmJbDOJmRpBhF7KQ= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=ywGME8Wm7Oyqd0uLOBDWFU29uqzs/vrI8rmmHawTU6cphKq/yFraRtyf5L+XA6ds30+7BJ2liJ/W/y/jymJhYa3QAKfVppDsAZOFw1omBdbe8hli8+0gGqn5rq/PAldgrieZ7aC8UnE1MTLxzK0ia5gGY+G1wJQHkKomlcE6MZA=; X-YMail-OSG: tHDg.PwVM1nCkf2G3D8hodqFVt071SK0mWBuVhADSLHZacx MLY0MS5_5EXTq8l_91lrtRoQESHPo9kxal6zgwbq_cqck29S9AJpAnLf7AD4 A.sB6eOtTzsZEiUVztjGYb2I0VspgkqWKc5rjaPuoKlq7_VkxrkDWLHH21xK FEGVYr9jClbxw4rVaG6Y.GQMK0kbhefKXKCjzc1Hnyc9kGcBFhrWfKgbRXpY Cad8y33.XBliwNAlwjld9i90ThBYH85wefvOHkAk1Gw_cqcSgp1R_6EfyVzw blnHMhN1W_MmJGuWA4kWsjnD1HEcWST5xof3wqG5iEGkgCybtakJQlY.o7sC Vp5osXb_oaF1BzuuWvJ_Xagbo_FSgPdsWZYN_bklm63BqP2LBsG_PUI1q1jJ GzuTqLG91GwPYF6gHlQnEMG8cPrx6yCEjekYx Received: from [76.183.92.86] by web36903.mail.mud.yahoo.com via HTTP; Fri, 02 Sep 2011 22:48:06 PDT X-Mailer: YahooMailWebService/0.8.113.315625 Message-ID: <1315028886.931.YahooMailNeo@web36903.mail.mud.yahoo.com> Date: Fri, 2 Sep 2011 22:48:06 -0700 (PDT) From: Srinivas Jonnalagadda Reply-To: Srinivas Jonnalagadda Subject: get the properties object loaded after the delayed refresh To: "user@commons.apache.org" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-723824702-1315028886=:931" X-Virus-Checked: Checked by ClamAV on apache.org --0-723824702-1315028886=:931 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi,=0A=0ABelow is the code for i wrote and seems at the propsConfig object = gets refreshd after the delay but the result object has the old values stil= l. How do i get the new values into the result object after the refresh. I = am trying to create a Configuration listener as well and that alos seems no= t to work.=A0 The main objective for me is to get the properties object loa= ded with new values without JBOSS server restart. Any help is appreciated.= =0A=0A=0ARegards,=0ASrinivas J=0A=0AProperties result =3D null;=0AConfigura= tion config =3D null;=0AURL resourceURL =3D null;=0AFileChangedReloadingStr= ategy refreshStrategy =3D new FileChangedReloadingStrategy();=0ArefreshStra= tegy.setRefreshDelay(refreshDelay);=0A=0APropertiesConfiguration propsConfi= g =3D new PropertiesConfiguration(); =0ApropsConfig.setFileName(name);=0Apr= opsConfig.load();=0ApropsConfig.setReloadingStrategy(refreshStrategy); =0Ar= esult =3D ConfigurationConverter.getProperties(propsConfig); --0-723824702-1315028886=:931--