Return-Path: Delivered-To: apmail-excalibur-dev-archive@www.apache.org Received: (qmail 33854 invoked from network); 25 Mar 2005 17:46:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Mar 2005 17:46:19 -0000 Received: (qmail 69499 invoked by uid 500); 25 Mar 2005 17:46:19 -0000 Delivered-To: apmail-excalibur-dev-archive@excalibur.apache.org Received: (qmail 69423 invoked by uid 500); 25 Mar 2005 17:46:17 -0000 Mailing-List: contact dev-help@excalibur.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Excalibur Developers List" Reply-To: "Excalibur Developers List" Delivered-To: mailing list dev@excalibur.apache.org Received: (qmail 69403 invoked by uid 99); 25 Mar 2005 17:46:17 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from p15103021.pureserver.info (HELO p15103021.pureserver.info) (217.160.129.83) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 25 Mar 2005 09:46:16 -0800 Received: from paiwastoon.de ([217.160.220.29] helo=webmail.paiwastoon.com.af) by p15103021.pureserver.info with smtp (Exim 4.30) id 1DEsst-00037B-Iq; Fri, 25 Mar 2005 18:46:11 +0100 Received: from 134.91.35.75 (SquirrelMail authenticated user tschlabach_apache-org@gcrud.org) by webmail.paiwastoon.com.af with HTTP; Fri, 25 Mar 2005 18:46:11 +0100 (CET) Message-ID: <33336.134.91.35.75.1111772771.squirrel@webmail.paiwastoon.com.af> Date: Fri, 25 Mar 2005 18:46:11 +0100 (CET) Subject: Rountrip for configurations? From: "Torsten Schlabach" To: dev@excalibur.apache.org Cc: jwkaltz@apache.org Reply-To: tschlabach@apache.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Dear all, I have a quite simple question: Is a component configuration (some .xconf) meant to be a one-way street? Is the basic idea that a component is configured from some .xconf file that got written manually by a human beeing? We would have a need for roundtrip configurations in the sense that the component comes up, get's its initial configuration from the .xconf file, then maybe later changes configured values from the Java code and wants to save it back to the .xconf. The only way I have seen this implemented is by having a save() method in the component which will built the entire configuration from scratch an serialize it. I think this is not only a cumbersome but also dangerous approach as it can easily happen that some options in the .xconf file just get lost because they might not be read and written back. I wonder if it would be a good idea to move to a JDOM like approach which would be to instantiate the .xconf in memory, change spefific elemnts and write it back. Is there already something like that? Am I on the entirely wrong path? Regards, Torsten --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org For additional commands, e-mail: dev-help@excalibur.apache.org