Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 34556 invoked from network); 26 Oct 2006 05:19:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2006 05:19:21 -0000 Received: (qmail 15086 invoked by uid 500); 25 Oct 2006 00:42:11 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 15050 invoked by uid 500); 25 Oct 2006 00:42:10 -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 15039 invoked by uid 99); 25 Oct 2006 00:42:10 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Oct 2006 17:42:10 -0700 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [68.142.206.234] (HELO smtp101.plus.mail.mud.yahoo.com) (68.142.206.234) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 24 Oct 2006 17:41:59 -0700 Received: (qmail 14218 invoked from network); 25 Oct 2006 00:41:38 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:Mime-Version:Content-Transfer-Encoding:Message-Id:Content-Type:To:From:Subject:Date:X-Mailer; b=0RrwgVF4yUkct8QWMzMduVU0X5ACeOikEx4HCeuDoOwDfiLL5TzbddSYWQkS0KS5gmxD1b/oxl2u7mQfF7GvRZ8Xceg3kV9vUPm02vCNpbXJsZc907hL4ESevI0CJcq00ndKB6suvA4845TKSsKuU04jReIJRIaR7yjgiGrZTjg= ; Received: from unknown (HELO ?10.11.55.8?) (david?jencks@63.105.20.225 with plain) by smtp101.plus.mail.mud.yahoo.com with SMTP; 25 Oct 2006 00:41:37 -0000 Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: <2C533E7F-20C2-4FE3-9FED-EF0402ADE150@yahoo.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: "Geronimo Dev List (JIRA)" From: David Jencks Subject: JPA support update Date: Tue, 24 Oct 2006 17:41:36 -0700 X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org After some conversations with David Blevins at ApacheCon in which he pointed out that the jpa impl is not supposed to look for persistence.xml files itself when deployed in an ee environment I wrote a PersistenceUnitBuilder that can interpret persistence.xml files included in a geronimo plan (where the gbeans go). This works much better than leaving it out :-) It looks like openjpa support is working fairly well in the sandbox/ javaee5 stuff. The toy jpa itest app deploys and can access the db without errors. I think the next step might be to make a version of daytrader that uses jpa. I'm not quite sure what the best way to do this is. Here are some ideas: 1. include the jpa stuff in the ejb jar, acessed through a session bean and through something like tradeDirect. This forces daytrader to run only on jdk 1.5 2. fork daytrader and do (1) in a fork 3. fork daytrader and only support jpa in the fork 4. have 2 ejb jars, one using jpa, the other not, and have 2 ears , one with jpa and the other not. From a brief look at daytrader it looks to me as if the way to proceed is to annotate and enhance the data holder classes in the ejb jar. I don't know if using disconnected enhanced classes would have any effect on performance for cmp or direct jdbc use, so I think that (3) or (4) might be advisable to avoid possible interference. Thoughts? thanks david jencks