[jboss-user] [EJB 3.0] - Re: @EJB DI in a servlet always null

muhviehstarr do-not-reply at jboss.com
Sun Jul 23 12:15:51 EDT 2006


Currently you cannot use the @EJB-annotation in servlets. It is only available in SessionBeans and MDBs. 

You should try to look via JNDIView (JMX-Console -> JNDIView -> list-Method) for your SessionBean to know the correct name.

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

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



More information about the jboss-user mailing list