[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-4432) Query uses closed EntityManager if scoped to PAGE context

Pete Muir (JIRA) jira-events at lists.jboss.org
Wed Sep 30 07:14:49 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBSEAM-4432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12487876#action_12487876 ] 

Pete Muir commented on JBSEAM-4432:
-----------------------------------

No we can't, this is the way the persistence context is set through components.xml. I have investigated your solution before, it won't work.

> Query uses closed EntityManager if scoped to PAGE context
> ---------------------------------------------------------
>
>                 Key: JBSEAM-4432
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-4432
>             Project: Seam
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 2.1.1.GA
>         Environment: JBoss AS 4.2.2.GA, linux
>            Reporter: Bernard Labno
>            Assignee: Pete Muir
>         Attachments: PersistenceController.java.patch
>
>   Original Estimate: 30 minutes
>  Remaining Estimate: 30 minutes
>
> Home objects cache entity manager which is fine for most scopes except for PAGE scope. I think, that PersistenceController.getPersistenceContext() method should check if cached entityManager is closed and if so than fetch one from context.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list