geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <j...@apache.org>
Subject [jira] Closed: (GERONIMO-3121) JPA Queries created outside a tx need to know about and close their EntityManagers
Date Thu, 26 Apr 2007 22:14:15 GMT

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


Mime
View raw message