db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Russell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JDO-445) Add convenience method that returns a PersistenceManager proxy
Date Thu, 21 Dec 2006 01:37:23 GMT
     [ http://issues.apache.org/jira/browse/JDO-445?page=all ]

Craig Russell updated JDO-445:

    Attachment: smime.p7s

Hi Jörg,

Here's the use case:

class MyServlet implements javax.servlet {
static PersistenceManager pm;

void init(ServletContext...) {
   pm = pmf.getPersistenceManagerProxy();

void doGet(Request...) {

The doPost, doGet, etc methods don't have to go look up something  
from JNDI or even get the "current" pm from the pmf. They just use  
the pm instance that the init method instantiated.


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!

> 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, smime.p7s
> 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


View raw message