Return-Path: Delivered-To: apmail-incubator-aries-dev-archive@minotaur.apache.org Received: (qmail 53024 invoked from network); 12 Jan 2010 14:39:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jan 2010 14:39:51 -0000 Received: (qmail 57359 invoked by uid 500); 12 Jan 2010 14:39:51 -0000 Delivered-To: apmail-incubator-aries-dev-archive@incubator.apache.org Received: (qmail 57274 invoked by uid 500); 12 Jan 2010 14:39:51 -0000 Mailing-List: contact aries-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: aries-dev@incubator.apache.org Delivered-To: mailing list aries-dev@incubator.apache.org Received: (qmail 57264 invoked by uid 99); 12 Jan 2010 14:39:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2010 14:39:51 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of linsun.unc@gmail.com designates 209.85.220.214 as permitted sender) Received: from [209.85.220.214] (HELO mail-fx0-f214.google.com) (209.85.220.214) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2010 14:39:43 +0000 Received: by fxm6 with SMTP id 6so9903942fxm.20 for ; Tue, 12 Jan 2010 06:39:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=ddoeSv2KV8xokXC2xdNucUFOP0nbuXPx9lbNesTW5gg=; b=MIo8VbtHK0qAU3jIo1FqYKJsSUxTOLbrAccSzoZxuQXuiQViXNQHIoRb1MhcDfbVxQ Y+7FnBKY1W5dVEJbX9NyNuhIlC2Fu+85dcN9JM/GQ8ej3EaV8i+HrdD7XD0XL2pB0rHW G8lGDEIcRTu3NhLAop8Z3h5/D8c7E+j1jOlNw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=OCCXr1VRdvT3BXS0LBcYQ3i2Ec4sWU/P7HwRACfAKDKsL0c4p1OA8u4qrVzv56ZM+V ankfZM2D1PKjL5o+x1RV4ZvYS5Ry1FwUv7mRzfFWUZVfMNlTuI74U4LZ9nf0FlzXoQ0S FAAYb9tL9RAT6QOzNSc6JJrqmXRnK1KqtaiPA= MIME-Version: 1.0 Received: by 10.223.15.11 with SMTP id i11mr9335683faa.105.1263307162869; Tue, 12 Jan 2010 06:39:22 -0800 (PST) In-Reply-To: <4B4B82B5.5050208@gmail.com> References: <4B4B82B5.5050208@gmail.com> Date: Tue, 12 Jan 2010 09:39:22 -0500 Message-ID: Subject: Re: {DISCUSS] Home for Daytrader sample leveraging Aries From: Lin Sun To: aries-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi Joe, I think it makes sense to have the new daytrader in apache aries. Just wondering if you want to have it under trunk/samples or have a separate directory for daytrader so that you could release daytrader separately like daytrader in Geronimo. Another advantage of doing this separately is that people can easily build the samples without building daytrader which i know sometimes we have trouble to build due to its complexity. Also wondering if it is possible to use the daytrader sample as part of our itest after moving it over to apache aries. Thanks Lin On Mon, Jan 11, 2010 at 2:57 PM, Joe Bohn wrote: > > Greetings all, > > I've been working on a version of the Geronimo Daytrader performance > benchmark to leverage the enterprise OSGi application programming model. > I've been doing this work in my sandbox under Apache Geronimo > (https://svn.apache.org/repos/asf/geronimo/sandbox/jbohn with the most > recent changes under daytrader-bp-new). > > I'd like to find a more permanent location for this work and get it out of > my sandbox. > > Here is a brief description of what I have thus far in sandbox: > - A restructured Daytrader to support an enterprise OSGi application > programming model including blueprint, web container, jndi, jpa, etc... > - To further support this programming model I have also reorganized the > classes, packages, and bundles. > - Simplification and removal of content not yet available in the enterprise > OSGi application programming model such as EJB support and removal of > Geronimo specific artifacts such as the plugins. > - Refactoring the way components gain knowledge of each other and interact > to support blueprint concepts such as reference list and reference > listeners. > - Support for just two different persistence mechanisms - direct JDBC and > direct JPA which are currently included in the enterprise OSGi application > programming model. > - packaging using the Aries Application concepts. > > After seeing the recently introduced Apache Aries Blog Sample and its > assembly for Equinox it encouraged me to do something similar for Daytrader > so that I could get this running with Apache Aries. I now have a further > subset of my sandbox work that could be added as a peer to the blog-sample > which includes just the JDBC persistence mechanism, is hard-wired to Derby, > and includes an Equinox assembly to run it. This is not currently in any svn > because I did it on my local repository under aries/trunk/samples with hopes > of checking it in there. > > I think it is time to get this code to a better home and I'm currently > thinking that aries/trunk/samples is a good place to start. For now I would > check in just the version with JDBC and the equinox assembly. However, I > would extend this with other capabilities already in my sandbox for JPA > persistence, the Aries Application packaging, etc... as these become > available in Aries. > > I'm interested if others agree with this approach, if it seems like a > worthwhile endeavor, and if it is acceptable to include this code under > aries/trunk/samples. > > Here are the current discussion points and concerns as I see them: > 1) Duplication of code between Geronimo and Aries if I check it into Aries. > However, the code is already split from the JavaEE Daytrader version and I > doubt it would be possible to fully merge the code base and keep both the > JavaEE and Aries versions working from a common code base without cluttering > up the code with environment checks. So, even if we keep it all in > Geronimo I think we will still end up with multiple code streams. > 2) The Equinox assembly version for DayTrader currently doesn't exploit > anything directly in Apache Geronimo. It depends upon the pax web container > among other things. It is certainly my intention that this should run on > Geronimo when Geronimo supports osgi rfc 66 among other things. However it > seems strange to include this in Geronimo at this point in time. > 3) Daytrader has always supported running in multiple web containers. I > think moving this enterprise OSGi application version of Daytrader to Aries > further supports this goal and ensures that it won't become too tightly > coupled to Geronimo. > > My apologies for the length of this description. Please let me know your > thoughts - especially if you have any concerns with checking this version of > Daytrader in under > https://svn.apache.org/repos/asf/incubator/aries/trunk/samples > > Thanks, > Joe > >