-
1. Re: Public static class as EJB not recognized by Arq/JBoss 7
aslak Sep 3, 2011 8:55 AM (in response to pedrokowalski)If they are deployed ok in the server, then it's just a lookup failure of the @EJB Enricher in arquillian, which is basically just randonmly guessing if you don't specify mappedName.
Have you tried @EJB(mappedName="jndi-name") on the Injection point?
-
2. Re: Public static class as EJB not recognized by Arq/JBoss 7
pedrokowalski Sep 3, 2011 9:09 AM (in response to aslak)Yea, it worked out when you specify the mappedName.
Didn't think about it, because during earlier tests, Arq plainly said that he's not able to inject members.
In this case it was just throwing a NullPointerException thrown.
-
3. Re: Public static class as EJB not recognized by Arq/JBoss 7
aslak Sep 4, 2011 7:49 AM (in response to pedrokowalski)Yea, this changed in the CR versions. Previously each Enricher threw a Exception if they couldn't inject it's members, but multiple Enrichers may now act upon the same InjectionPoints, e.g. EJBEnricher and CDIEnricher can handle @EJB, and the order of execution is undefined.
This needs a more solid impl tho, it should know which enricher tried what and failed where, and fail it all if non of them managed.
Currently Enrichers only log on log level fine if they can't inject.
-
4. Re: Public static class as EJB not recognized by Arq/JBoss 7
pedrokowalski Sep 6, 2011 11:50 AM (in response to pedrokowalski)Ok, so right now there isn't any "manager" component which handles such situation (when none of the enrichers worked)?
Currently, do you have to declare which enrichers are handling which annotations, or all of the enrichers works (by default) on all annotations?
Is there an appropriate JIRA ARQ for this situations?
TIA
Cheers!
-
5. Re: Public static class as EJB not recognized by Arq/JBoss 7
aslak Sep 9, 2011 3:13 PM (in response to pedrokowalski)ARQ-480