You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Donald Woods (JIRA)" <ji...@apache.org> on 2010/03/09 19:09:27 UTC

[jira] Updated: (OPENJPA-794) issues with closing/opening entity manager (slices) (can't seem to be able to create multiple entityManagers )

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

Donald Woods updated OPENJPA-794:
---------------------------------

    Affects Version/s:     (was: 2.0.0-M2)
                       2.0.0-M1
        Fix Version/s: 2.0.0-M1

> issues with closing/opening entity manager (slices) (can't seem to be able to create multiple entityManagers )
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-794
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-794
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: slice
>    Affects Versions: 2.0.0-M1
>            Reporter: Fernando
>            Assignee: Pinaki Poddar
>            Priority: Critical
>             Fix For: 2.0.0-M1
>
>         Attachments: log.txt
>
>
> So, for each of my web requests I open an entitymanager at the begining, and close it at the end, something like this:
> EntityManager pm = pmf.createEntityManager();
> try {
>  chain.filter(...);
> }
> finally {
>  pm.close();
> }
> And this works perfectly without slices.  But when I turn on slices, this fails.  The first request works fine, but the second requests complains that the EntityManager has already been closed.  So it seems to be caching the EntityManager from the previous request...  can someone please help me figure out how to fix this??
> I'll attach the log.

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