1 Reply Latest reply on Feb 20, 2002 8:49 PM by Wellie Chao

    Bean reference with <ejb-link>

    Rudi Boehringer Newbie

      I have a session bean in one jar file which uses an entity bean in another jar file. Now I have the problem that I don't know how to define the reference in the <ejb-link> tag in the ejb-jar.xml file of the session bean that I can use the entity bean.

      Here is the code snippet which I used in the ejb-jar.xml file of my session bean. When i deploy the session bean I always get the message: "Can't find the entity bean in this application". Does anybody know what's wrong.


        • 1. Re: Bean reference with <ejb-link>
          Wellie Chao Newbie

          There is no ejb-link. You leave it out. In the jboss.xml file, you create a mapping like so:


          You only use ejb-link when the target bean (bean being referenced) is in the same jar file as the source bean (bean using the reference).