[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-3094) ManagedPersistenceContext throws away entityManager on sessionWillPassivate event

Norman Richards (JIRA) jira-events at lists.jboss.org
Wed Jun 11 16:36:15 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBSEAM-3094?page=all ]

Norman Richards closed JBSEAM-3094.
-----------------------------------

    Resolution: Done

Fixed by not force closing the em on every request.  Tested in all configuration with 1 and 2 nodes to see that we weren't tossing away the em unneccessarily or preventing failover from working correctly.

> ManagedPersistenceContext throws away entityManager on sessionWillPassivate event
> ---------------------------------------------------------------------------------
>
>                 Key: JBSEAM-3094
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-3094
>             Project: Seam
>          Issue Type: Bug
>            Reporter: Norman Richards
>         Assigned To: Norman Richards
>             Fix For: 2.0.3.GA, 2.1.0.BETA1
>
>
> sessionWillPassivate() is called after every request when in clustered mode, so throwing away the em forces conversations entities data to be reloaded on every request.  (and non-conversational ones to detach) I think we can be a bit smarter about this and preserve the em when we haven't actually failed over.

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