[
https://issues.apache.org/jira/browse/OPENJPA-794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12651891#action_12651891
]
Fernando commented on OPENJPA-794:
----------------------------------
the root cause of this bug is that slices does not work with
QueryCompilationCache..
Issue OPENJPA-797, is asking for this restriction to be posted in the
Documentation.
This bug can either be closed (accepting the restriction), or be kept open to
see if we can change the code to lift this restriction..
I would say close this one for now (duplicate of 797).
> 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: kernel
> Affects Versions: 2.0.0
> Reporter: Fernando
> Priority: Critical
> 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.