If both ejb's are in the same ear, simplest way is to inject the ejb using @EJB. No explicit JNDI names are needed then - the container handles that for you.I am trying to access an EJB from another EJB
SCJP 5 (98%) - SCBCD 5 (98%)
SCJP 5 (98%) - SCBCD 5 (98%)
SCJP 5 (98%) - SCBCD 5 (98%)
SCJP 5 (98%) - SCBCD 5 (98%)
sachin wrote:
Please let me know if you know some other way of doing it for all the EJB so that any EJB can be called from the EJB context.
SCJP 5 (98%) - SCBCD 5 (98%)
Consider Paul's rocket mass heater. |