Apache JDO Project - [jira] Commented: (JDO-445) Add convenience method that returns a

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > December 2006 > [jira] Commented: (JDO-445) Add convenience method that returns a





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Commented: (JDO-445) Add convenience method that returns a
Jörg von Frantzius (JIRA)

2006-12-20, 7:11 am

[ http://issues.apache.org/jira/brows...ments#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



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com