File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes ejb-link and ejb-ref-name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "ejb-link and ejb-ref-name" Watch "ejb-link and ejb-ref-name" New topic

ejb-link and ejb-ref-name

aakash bhatt
Ranch Hand

Joined: Jan 09, 2003
Posts: 182
Q)What is the difference between <ejb-link> tag and <ejb-ref-name> tag
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
From the DTD file:
The value of the ejb-link element must be the ejb-name of an
enterprise bean in the same ejb-jar file or in another ejb-jar
in the same J2EE application unit.
In other words, while the ejb-name element specifies the logical name with which the referenced EJB can be accessed, the ejb-link element specifies to the container where to find that particular EJB.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: ejb-link and ejb-ref-name
It's not a secret anymore!