[jboss-jira] [JBoss JIRA] Updated: (JBAS-9383) Extended persistence context no longer extended
Scott Marlow (JIRA)
jira-events at lists.jboss.org
Tue May 3 07:16:18 EDT 2011
[ https://issues.jboss.org/browse/JBAS-9383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott Marlow updated JBAS-9383:
-------------------------------
Affects Version/s: 6.1.0
(was: 6.0.0.Final)
Changed "affects version" to 6.1 to be more reflective of it being a (current) trunk issue.
Would it be possible to create a unit test under https://github.com/jbossas/jboss-as/tree/master/testsuite/integration/src/test/java/org/jboss/as/testsuite/integration/jpa (subdirectory of https://github.com/jbossas/jboss-as.git)? I'd like to ensure issues like this don't occur on AS7. For AS6, I want to return to cleaning up the "in transition" changes (with help from others). It would be good to have a test case for this issue on AS6 as well. :)
I'm not sure if its related, but the major issue with XPC in AS 6 trunk, is that we are too lazy with the injection of the underlying (Hibernate) persistence provider. At SFSB creation time, we need to inject the underlying (Hibernate) persistence provider, which may come from an in-progress SFSB invocation that has already started the XPC (with the same persistence unit). Instead, we wait until the created SFSB is invoked (lazily) to do the injection of the underlying (Hibernate) persistence provider (too late since the XPC that we would of inherited from another SFSB, could be out of scope).
We don't have the above issue in the released 6.0. The issue needs to be addressed before we release 6.1.
> Extended persistence context no longer extended
> -----------------------------------------------
>
> Key: JBAS-9383
> URL: https://issues.jboss.org/browse/JBAS-9383
> Project: Legacy JBoss Application Server 6
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: JPA / Hibernate
> Affects Versions: 6.1.0
> Reporter: Nicklas Karlsson
> Assignee: Scott Marlow
> Fix For: 6.1.0
>
>
> I have a @ConversationScoped @Stateful bean with a @PersistenceContext(type = PersistenceContextType.EXTENDED) EntityManager em.
> I load an object by merging it into the em and storing it in the bean in the normal fashion but when I later do em.persist(foo) the persistence manager tries to insert it as a fresh object. em.contains(foo) also returns false.
> This is in trunk, it works on 6.0.0.Final
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list