[jboss-user] [EJB 3.0] - Re: Injecting an EJB into a Servlet
do-not-reply at jboss.com
Thu Oct 9 04:35:53 EDT 2008
I have a working example of using the @EJB annotation in a servlet without any further attributes for remote and local interface.
Maybe there's some problem with your EJBs? Take a look at the JNDI view (http://localhost:8080/jmx-console), there you should find the JNDI names of your bean. If not, there's another problem.
One thing I noticed: you map your bean to a local interface, but the class name "VideoService" sound like a remote interface? Local interfaces should have the suffix "Local".
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181170#4181170
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4181170
More information about the jboss-user