[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1491) Seam-managed persistence contexts and REQUIRES_NEW

Gena Batalski (JIRA) jira-events at lists.jboss.org
Mon Mar 17 12:43:51 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBSEAM-1491?page=comments#action_12403182 ] 
            
Gena Batalski commented on JBSEAM-1491:
---------------------------------------

Can it be done transparently, without @PersistenceContext: For example, as soon as the REQUIRES_NEW is found, the new temporary conversation will be created and the temporary PC is used for the injection instead of the currently active one?

> Seam-managed persistence contexts and REQUIRES_NEW
> --------------------------------------------------
>
>                 Key: JBSEAM-1491
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1491
>             Project: JBoss Seam
>          Issue Type: Task
>          Components: Core
>            Reporter: Gavin King
>         Assigned To: Gavin King
>             Fix For: 2.1.0.GA
>
>
> It's always wrong to try and propagate a PC across REQUIRES_NEW. But indeed that is exactly what Seam does with conversation scoped PCs. Of course, the correct thing to do is use @PersistenceContext in this case. But how many users know they are supposed to do this?
> Is there some way we can *detect* this problem?
> We should at the very least document it...

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

        



More information about the seam-issues mailing list