JBoss Community

Re: EJB 3.1, CDI, JSF 2 ERROR java.lang.NullPointerException

created by David Salter in EJB3 - View the full discussion

If you declare your bean as

 

    @EJB

    MyBean myBean;

 

then it should work correctly as the name will be looked up and injected correctly.

 

Also, if you're using EJB 3.1, then your business interfaces are optional.

Reply to this message by going to Community

Start a new discussion in EJB3 at Community