1. Declare the dependency using @EJB at the class level (most EJB 3 references should cover this).
For stateless session beans , i would do as above .
Use XML DD (web.xml) to declare the dependency
This is where i am getting confused , cant i use sessioncontext.lookup (passing EJB mappedname inside it) without mentioning anything in web.xml ejb-reference ??
Can you please clarify this please
Thanks in advance