This content has been marked as final.
Show 5 replies
-
1. Re: ARQ-538
aslak Aug 8, 2011 1:05 PM (in response to juergen.zimmermann)Seems you missed the comment on the AS7 issue you reported..
Have you tried using:
@Resource(mappedName = "java:/module/UserTransaction")
That seems to work fine with AS7 on my end.
-
2. Re: ARQ-538
aslak Aug 8, 2011 1:11 PM (in response to aslak)No wait, sorry, i missed the CDI part of this.
-
3. Re: ARQ-538
aslak Aug 8, 2011 1:30 PM (in response to aslak)Weld is overriding the mappedName in it's ResourceInjectionService, basically saying
if(injection point type == UserTransaction) lookup java:/comp/UserTransaction
The Arquillian testcase is not a EE component and has no comp namespace associated with it so it fails.. Not sure if this is by spec or not, but checking with the Weld guys.
-
4. Re: ARQ-538
juergen.zimmermann Aug 9, 2011 10:32 AM (in response to aslak)It is fixed in Jenkins build 1485
-
5. Re: ARQ-538
windigo Dec 7, 2011 6:17 AM (in response to juergen.zimmermann)I've the same problem with the Resource-Injection of SessionContext in a pojo.