Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 94696 invoked from network); 11 Oct 2006 12:48:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Oct 2006 12:48:32 -0000 Received: (qmail 21102 invoked by uid 500); 11 Oct 2006 12:48:32 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 21091 invoked by uid 99); 11 Oct 2006 12:48:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Oct 2006 05:48:32 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of wes@tralfamadore.com designates 216.154.211.217 as permitted sender) Received: from [216.154.211.217] (HELO cacas.org) (216.154.211.217) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Oct 2006 05:48:28 -0700 Received: from [10.51.14.78] ([62.189.209.116]) by cacas.org (8.13.1/8.13.1) with ESMTP id k9BCm6wQ032172; Wed, 11 Oct 2006 08:48:07 -0400 Message-ID: <452CE76A.9090403@tralfamadore.com> Date: Wed, 11 Oct 2006 13:45:30 +0100 From: Wes Biggs User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: JDO Expert Group CC: Apache JDO project Subject: Re: Proposal: alignment with JPA References: <9CC016D4-A78B-4853-937B-8606D41C11CD@SUN.com> In-Reply-To: <9CC016D4-A78B-4853-937B-8606D41C11CD@SUN.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: softfail (cacas.org: domain of transitioning wes@tralfamadore.com does not designate 62.189.209.116 as permitted sender) receiver=cacas.org; client-ip=62.189.209.116; helo=[10.51.14.78]; envelope-from=wes@tralfamadore.com; x-software=spfmilter 0.97 http://www.acme.com/software/spfmilter/ with libspf2-1.0.0; X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N +1 Craig L Russell wrote: > Javadogs, > > To align JDO better with JPA, I'd like to borrow some JPA concepts and > apply them to JDO, and document in JDO 2.1 (maintenance release). > > PersistenceManagerFactory is equivalent to a persistence unit. > PersistenceManagerFactories can be configured to be either > resource-local or jta, based on a PMF property: > javax.jdo.option.TransactionType. It defaults in managed environments > to JTA; and in non-managed environments to ResourceLocal. > > PersistenceManager is equivalent to a persistence context. A > PersistenceManager is either resource-local or jta based on the > transaction type of its PersistenceManagerFactory. For jta > PersistenceManagers, the begin, commit, and rollback methods of the > corresponding Transaction throw JDOUserException. The only way to > complete transactions with jta PersistenceManagers is to use > container-managed transactions or UserTransaction. > > Craig > > Craig Russell > > Architect, Sun Java Enterprise System http://java.sun.com/products/jdo > > 408 276-5638 mailto:Craig.Russell@sun.com > > P.S. A good JDO? O, Gasp! > >