Originally posted by Jothi Shankar Kumar Sankararaj:
(1) Through @EJB annotation
(2) Through @Resource annotation
(3) Through JNDI lookup (If the client is remotely deployed)
How would you get a reference through the @Resource annotation?
I can only think of these 3 ways:
1) Dependency injection using the @EJB annotation
2) Dependency injection using the ejb-ref ejb-local-ref elements of the deployment descriptor.
3) By doing a JNDI lookup using the javax.naming.Context interface or the EJBContext.lookup() method.
[ September 05, 2008: Message edited by: Sergio Tridente ]