How can you refer an EJB that is deployed in another EAR. For example I have an EAR called ear a which contains an EJB ejb a, I want to refer this EJB from another EJB (ejb b) which is packaged and deployed in another EAR ear b. Currently I cannot seem to find any other way other than packaging ejb a in ear b as well. Is there any way to avoid this?
Thanksa and regards,