Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 34839 invoked from network); 20 Dec 2006 12:00:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Dec 2006 12:00:53 -0000 Received: (qmail 2752 invoked by uid 500); 20 Dec 2006 12:01:00 -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 2741 invoked by uid 99); 20 Dec 2006 12:01:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Dec 2006 04:01:00 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Dec 2006 04:00:52 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B2348714295 for ; Wed, 20 Dec 2006 04:00:27 -0800 (PST) Message-ID: <1048934.1166616027726.JavaMail.jira@brutus> Date: Wed, 20 Dec 2006 04:00:27 -0800 (PST) From: =?utf-8?Q?J=C3=B6rg_von_Frantzius_=28JIRA=29?= To: jdo-dev@db.apache.org Subject: [jira] Commented: (JDO-445) Add convenience method that returns a PersistenceManager proxy In-Reply-To: <14512559.1165610180975.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/JDO-445?page=3Dcomments#action_1= 2459912 ]=20 =20 J=C3=B6rg von Frantzius commented on JDO-445: ---------------------------------------- And what about non-transactional reads? What we do in our systems is to kee= p track of one PM per thread in a Map, and upon returning a PM, we iterate = the keyset() of threads in this map, "reaping" dead threads by closing thei= r PMs if they weren't closed already, and removing found dead threads from = the Map afterwards. As far as I can see, this could provide an implementation of the proposed m= ethods, as with an ongoing transaction the current thread is equivalent to = the ongoing transaction. The only problem could be transactions that (seque= ntially) span multiple threads, but I don't believe that any XA implementat= ion supports that scenario anyway. > Add convenience method that returns a PersistenceManager proxy > -------------------------------------------------------------- > > Key: JDO-445 > URL: http://issues.apache.org/jira/browse/JDO-445 > Project: JDO > Issue Type: New Feature > Components: api2, api2-legacy > Reporter: Michelle Caisse > Assigned To: Craig Russell > Fix For: JDO 2 maintenance release 1 > > Attachments: PMProxy-patch.txt > > > In Chapter 8, add a convenience method that returns a PersistenceManager = proxy that can be used in web and ejb containers to dynamically bind to the= transaction-associated PersistenceManager. --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira