I have implemented an EJB 3.0 stateless session bean, i have tested this in standalone program by using JNDI and its working fine.
But where as when use @EJB annotation in my servlet its not looking up the ejb object i am getting nullpointer exception because of this. I knew its not able to lookup ejb that is why its giving nullpointer exception, but my problem is why it is not able to look up the bean. Do i need to setup any thing in my weblogic webapp. This webapp and ejb are running in the same weblogic server.
I appreciate your clearcut setup information.
Joined: Nov 15, 2004
Even in my standalone program also its not working if i use @EJB annotation , if i use JNDI its working. What do i need to setup ?