[jboss-user] [Beginners Corner] - Possible to inject an ejb into a JSF-managed bean w/ @EJB in

dxxvi do-not-reply at jboss.com
Thu Jun 5 09:14:41 EDT 2008


I'm using JBoss AS 4.2.2.GA and the JSF implementation going along with it. When I tried to inject a session bean to a JSF-managed bean (i.e. this bean is declared in faces-config.xml), I got the exception Injection failed on managed bean. javax.naming.NameNotFoundException ... (not sure if I did anything wrong, I can give you the source code and the EAR file if it is needed).

The example application JSF - EJB3 I downloaded at http://www.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/ doesn't use @EJB but uses JNDI lookup. That makes me doubt that @EJB can be used in JBossAS 4.2.2.GA.

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

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



More information about the jboss-user mailing list