Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 41409 invoked from network); 23 Jul 2008 12:59:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jul 2008 12:59:48 -0000 Received: (qmail 12793 invoked by uid 500); 23 Jul 2008 12:59:46 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 12742 invoked by uid 500); 23 Jul 2008 12:59:46 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 12731 invoked by uid 99); 23 Jul 2008 12:59:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2008 05:59:46 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ted.kirby@gmail.com designates 72.14.220.154 as permitted sender) Received: from [72.14.220.154] (HELO fg-out-1718.google.com) (72.14.220.154) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2008 12:58:52 +0000 Received: by fg-out-1718.google.com with SMTP id l27so1319178fgb.27 for ; Wed, 23 Jul 2008 05:59:17 -0700 (PDT) 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 :content-transfer-encoding:content-disposition:references; bh=h33p9r7deRvsu7VvXM5a27NtSVnyHlpHdzOsE5C1vBE=; b=NdOkTtI2llmJgqIJiuQ4S6MEKW8SYdTguYRvks2IM+eqM6zQhqqhntH7AO4MVpiTAn kr8NdjJ97QJuvP6ZK0sg13GDrKvztPcahx0i4niKOZc5f/Hpi/E5i/0XAlbE3G6MpZjJ zNxOFCF7oIpzv9RQMlosNkUYDjEB4l0IygGTE= 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:content-transfer-encoding:content-disposition :references; b=avFl62PN20Hanfe4xTz8msQEWtNZtzGT/i3k0VBgfNMvX4ZYcAgsbO2j6UJzf43K7t nIN07+3aBCFMpYOUR28+Egk5oVvS9qRIc/JOdt6pNjLujW+6SnHwWRBXmFUT00IUBsIs pg13zep0HG2opBKpnOAd+/DqfHJ2FwZPSCoOE= Received: by 10.125.99.13 with SMTP id b13mr407554mkm.98.1216817956962; Wed, 23 Jul 2008 05:59:16 -0700 (PDT) Received: by 10.125.156.4 with HTTP; Wed, 23 Jul 2008 05:59:16 -0700 (PDT) Message-ID: <3da992810807230559n182c8a56na0e9746021b285e4@mail.gmail.com> Date: Wed, 23 Jul 2008 08:59:16 -0400 From: "Ted Kirby" To: dev@geronimo.apache.org Subject: Re: Multiple schema version support in GEP In-Reply-To: <435270830807230519q610cad19n61f96c47e5d6c338@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <435270830807230519q610cad19n61f96c47e5d6c338@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Technically this sounds good. The timing is another matter. G 2.1.2 will be released soon, and we'll need GEP 2.1.2 shortly thereafter, particularly to get Ganymede support. We shouldn't "reorganize the whole of GEP" until after GEP 2.1.2. Ted On Wed, Jul 23, 2008 at 8:19 AM, Sainath Chowdary wrote: > I think that current architecture of GEP is too rigid in a way which > produces very redundant code if we extend it for future versions of > Geronimo. Also it is not compliant with multiple version of schemas.The UI > elements are also somewhat implemented in a hacky way where v20 UI depends > on v21 UI which should be the opposite. We need to introduce proper > hierarchy levels according to schema/server versions in GEP MVC at this > level before GEP becomes overly complicated. > > For this I propose we change the architecture of our JAXB model to provide > support for multiple versions of schemas. With the help of slight > customizations we can easily make JAXB model tailored for our purpose. The > main task would be to create a common pool of classes between the versions > and initializing the JAXB context properly. Assuming we support both v2.0 > and v2.1 which respectively have geronimo-web-2.0.xsd & > geronimo-web-2.0.1.xsd, we will create a Interface that will be implemented > by both WebAppTypes so that in commn UI section we can directly cast to the > interface and in version specific UI we can cast it to the particular > version we are working in. > > After that we may need to refactor the code in ui plugins to utilize the new > hierarchy levels and extra functionality added. Current architecture will > easily achieve its bottleneck if the schema changes frequently. I find it > this is the ideal time to reorganize the whole of GEP. > Any comments? > > -- > Thanks, > Sainath Chowdary > B.Tech III yr, Spring Semester > Electronics & Communication Engg > Indian Institute of Technology Roorkee