You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "David Jencks (JIRA)" <ji...@apache.org> on 2007/04/27 00:14:15 UTC

[jira] Closed: (GERONIMO-3121) JPA Queries created outside a tx need to know about and close their EntityManagers

     [ https://issues.apache.org/jira/browse/GERONIMO-3121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Jencks closed GERONIMO-3121.
----------------------------------

    Resolution: Fixed

Fixed in rev 532889 by copying Dain's JtaQuery from openejb3.  Patrick suggested on the openjpa list that a dynamic proxy would be much better but I haven't investigated if this is plausible here.

> JPA Queries created outside a tx need to know about and close their EntityManagers
> ----------------------------------------------------------------------------------
>
>                 Key: GERONIMO-3121
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3121
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: persistence
>    Affects Versions: 2.0-M5
>            Reporter: David Jencks
>         Assigned To: David Jencks
>             Fix For: 2.0-M6
>
>
> A Query needs an entity manager to work.  So if we create a Query outside a tx, with a non-extended cmp entity manager, the query has to remember its entity manager and close it when done.  Closing the entity manager immediately makes the query not work.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.