[jboss-user] [EJB 3.0] - Re: Injecting EJB References NullPointerException JBoss 5.0

PeterJ do-not-reply at jboss.com
Wed Nov 5 17:14:06 EST 2008


You should provide a mappedName for @EJB, because the default name (HelloWorldSession) is typically not a valid JNDI name for looking up an EJB (most likely, it is something like xxx/HelloWorldSession/local, where xxx is the app name).

You can use JNDIView to determine the deployed EJB's JNDI name. http://www.jboss.org/community/docs/DOC-9584

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187118#4187118

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187118



More information about the jboss-user mailing list