[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1348) PersistenceContext is not "untouched" on destory

Shane Bryzak (JIRA) jira-events at lists.jboss.org
Sun May 27 21:56:18 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBSEAM-1348?page=comments#action_12363290 ] 
            
Shane Bryzak commented on JBSEAM-1348:
--------------------------------------

>From what I can tell this should be as simply as calling PersistenceContexts.instance().untouch(componentName) in ManagedPersistenceContext.destroy(), with the untouch() method simply removing the context from its internal set.  Is this about right?

> PersistenceContext is not "untouched" on destory
> ------------------------------------------------
>
>                 Key: JBSEAM-1348
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1348
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.1.GA
>            Reporter: Michael Youngstrom
>             Fix For: 1.3.0.ALPHA
>
>
> I have a persistence context that I wish to only be created within a nested conversation and destroyed when that nested conversation ends.
> However, after my nested conversation ends and my PersistenceContext destroyed it is being recreated in my outer conversation when PassivatedEntity.createPassivatedEntity iterates through all of the "touched" PersistenceContexts.
> This could be fixed by "untouching" PersistenceContexts when in the @Destory method of ManagedPersistenceContext.

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