-
1. Re: Getting entitymanager delegate causes exception
nickarls Aug 3, 2011 4:43 AM (in response to nickarls)Nevermind, I think I got working with a combination of moving to Seam-managed PC:s and updating to Seam Persistence 3.0.1-SNAPSHOT...
-
2. Re: Getting entitymanager delegate causes exception
smarlow Aug 26, 2011 12:05 PM (in response to nickarls)I think we discussed the above on IRC possibly but more recently, AS7-1663 details a problem that could be related.
Was the above for a SFSB with XPC (extended persistence context) invoking another bean with only PC (transactional entity manager)? Is the SFSB with XPC method running without a JTA transaction?
-
3. Re: Getting entitymanager delegate causes exception
smarlow Aug 26, 2011 1:35 PM (in response to smarlow)My pull request for AS7 (7.0.2) https://github.com/jbossas/jboss-as/pull/225, eliminates the detailed error message which came from an incorrect check.
-
4. Re: Getting entitymanager delegate causes exception
smarlow Aug 26, 2011 1:57 PM (in response to smarlow)I'm fixing the check, to meet the requirements of 7.6.3.1, which will eliminate the invalid one. I'm not sure from your description which case you hit. The new check will cover:
If the component is a stateful session bean to which an extended persistence context has been bound and there is a different persistence context bound to the JTA transaction, an EJBException is thrown by the container.
-
5. Re: Getting entitymanager delegate causes exception
smarlow Aug 26, 2011 2:34 PM (in response to smarlow)Nicklas, never mind, the ExtendedEntityManager error check is correct and that is the one that you got.
-
6. Re: Getting entitymanager delegate causes exception
smarlow Aug 27, 2011 2:46 PM (in response to smarlow)Actually, the ExtendedEntityManager error check doesn't seem right. Working on a test case...
-
7. Re: Getting entitymanager delegate causes exception
smarlow Aug 29, 2011 9:25 PM (in response to smarlow)Unit test case (https://github.com/scottmarlow/jboss-as/commit/7c7fa408e415ce1bb91963536d83cc0338f75325) passes.