You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Craig Russell (JIRA)" <ji...@apache.org> on 2006/12/19 21:47:21 UTC

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

    [ http://issues.apache.org/jira/browse/JDO-445?page=comments#action_12459754 ] 
            
Craig Russell commented on JDO-445:
-----------------------------------

Proposal:

Add a new JDOHelper method getPersistenceManagerProxy that returns a thread-safe PersistenceManager that dynamically delegates to the PersistenceManager currently bound to the thread's global transaction as reported by TransactionSynchronizationRegistry. If there is no such PersistenceManager, the method will get one from the PersistenceManagerFactory. This method can be used by application developers who know that their application only needs to run in environments that support TransactionSynchronizationRegistry registered via JNDI in the standard location.

Add a new PersistenceManagerFactory method getPersistenceManagerProxy that returns a thread-safe PersistenceManager that dynamically delegates to the PersistenceManager currently bound to the thread's global transaction. If there is no such PersistenceManager, the method will get one from the PersistenceManagerFactory. This method can be implemented by the persistence provider to support Java EE 5 by simply delegating to JDOHelper.getPersistenceManagerProxy. If support for non-Java EE 5 servers is desired, the provider must implement the functionality as value-add.


> 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
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira