-
1. Re: @EJB injection gives null
kgrjb Jul 16, 2006 11:18 PM (in response to kgrjb)i forgot to say it was working fine in jboss-4.0.3SP1
-
2. Re: @EJB injection gives null
jatsrt Jul 18, 2006 3:42 PM (in response to kgrjb)Don't know if you are seeing the same problem as what we had, but we were using the embedded container for testing and 4.0.4 for release. The location of the EJB class has changed and we did not see that, so every @EJB was giving null because it could not find the EJB class.
-Jake -
3. Re: @EJB injection gives null
kgrjb Jul 19, 2006 11:06 PM (in response to kgrjb)thanks for reply.
if you mean package of the classes then my classes have not changed package. -
4. Re: @EJB injection gives null
scraatz Jul 21, 2006 5:32 AM (in response to kgrjb)THe default JNDI-Naming for the Session Beans was changed.
-
5. Re: @EJB injection gives null
kgrjb Jul 22, 2006 12:59 AM (in response to kgrjb)do you what the default jndi naming has changed to?
i tried to override default name with @LocalBinding but didnt work. -
6. Re: @EJB injection gives null
jason_rency Aug 16, 2006 9:01 AM (in response to kgrjb)got the same problem,
do you hava a solution? -
7. Re: @EJB injection gives null
barmyyetti Aug 17, 2006 2:46 PM (in response to kgrjb)Same problem here too.
Have been pulling my hair out, thinking it was something I have missed.
Take it no one has a solution for this yet? -
8. Re: @EJB injection gives null
pesalomo Aug 25, 2006 7:38 AM (in response to kgrjb)Try replacing import javax.annotation.EJB with import javax.ejb.EJB ...
Peter -
9. Re: @EJB injection gives null
kgrjb Sep 3, 2006 2:42 AM (in response to kgrjb)peter suggestion didnot help.
ive been using this as a workaround.
LocalIntf ejbField;
@PostConstruct
public void initBean() {
try {
InitialContext ctx = new InitialContext();
ejbField = ejbField == null ? (LocalIntf) ctx.lookup("earName" + "/beanClassName" + "/local") : ejbField;
} catch (NamingException e) {
// do whatever
}
} -
10. Re: @EJB injection gives null
killme2008 Sep 3, 2006 10:10 AM (in response to kgrjb)I have the same problem.any solutions?
by dennis