I have a stateless session bean and a servlet
. I have declared a private variable like below in servlet:
But above code is doing nothing. Servlet is in a .war module, ejb
is in a .jar module and both are in same ear file.
When mySessionBean is accessed in a method nullpointerexception is thrown. Basically mySessionBean is never set. Can anybody help here?