This content has been marked as final.
Show 3 replies
-
1. Re: EntityManager injection Failure with Multiple persistence-unit of Jboss6
xpavlic4 May 27, 2011 9:16 AM (in response to zhang.hongyu)I got exactly the same. Multiple units in persistence.xml and they vary every deployment. I havent solved it yet.
-
2. Re: EntityManager injection Failure with Multiple persistence-unit of Jboss6
smarlow May 27, 2011 2:36 PM (in response to xpavlic4)I would like to make sure we get this right for AS7. I started a test here https://github.com/scottmarlow/jboss-as/commit/d704226cca85d8e870f5ac91254bc816c0dd2475 that is not yet done (hopefully with be soon).
-
3. Re: EntityManager injection Failure with Multiple persistence-unit of Jboss6
smarlow May 28, 2011 12:01 AM (in response to smarlow)Looks like we are good in AS7.
The AS7 unit test for the above issue, is passing. Source is at https://github.com/scottmarlow/jboss-as/commit/c3ebdf0651aa91e92a0a35a018a3502943a6e1af
I also added some trace logging to help see what is going on during the search for the persistence unit:
https://github.com/scottmarlow/jboss-as/commit/f7719b0184976b90bce24936810d1bf1ac559cc2