This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I have created a simple stateless session bean which implements a simple local interface.
And I'm using a Servlet to act as client for my session bean, and in my Servlet class I'm using the @EJB annotation to fire dependency injection but it's giving me a null pointer exception, I'm using EJB 3.0, why I'm getting this exception since the container does the injection automatically and binds the EJB with my instance variable of the same type of the EJB ?