5 Replies Latest reply on Oct 16, 2002 8:49 AM by juha

    Local references currently require ejb-link

    icordoba

      Hi there,
      I am trying to deploy into JBoss 3.0.2 a ear file I have successfully tested in Pramati Server.
      I am getting many errors about "Local references currently require ejb-link" ¿where do I have to put those ejb-link tags?
      I can't find info about this.

      A part from this, I don't want to use Jaws as persistence engine, but Postgres (the same I am using with pramati) but I am not sure that in the commercial documentation I have a good doc on this. I just need to configure a "data source" to the Postgres data base and map the EJB fields and relations. For Pramati server all this is done with 2 files: pramati-j2ee-server.xml and pramati-or-mapping.xml
      I guess the rest of the project files (web.xml and ejb-jar.xml are the same for any EJB container, right?)
      Which are the equivalent for JBoss and where I can find documentation on how to map the EJB properties and relations to the database? (I use CMP 2.0, of course).

      Thanks for any help.

        • 1. Re: Local references currently require ejb-link
          tdang

          >I am trying to deploy into JBoss 3.0.2 a ear file I have
          >successfully tested in Pramati Server.
          >I am getting many errors about "Local references
          >currently require ejb-link" ¿where do I have to put
          >those ejb-link tags?
          >I can't find info about this.

          It seems that you have a reference between two beans and you must have <ejb-link> tag in your reference mapping. Here is an example of a reference mapping (ejb-jar.xml):

          <ejb-local-ref>
          <ejb-ref-name>Data</ejb-ref-name>
          <ejb-ref-type>Entity</ejb-ref-type>
          <local-home>BeanLocalHome</local-home>
          BeanLocal
          <ejb-link>Bean</ejb-link></ejb-local-ref>

          Regards.

          • 2. Re: Local references currently require ejb-link
            tdang

            >I am trying to deploy into JBoss 3.0.2 a ear file I have
            >successfully tested in Pramati Server.
            >I am getting many errors about "Local references
            >currently require ejb-link" ¿where do I have to put
            >those ejb-link tags?
            >I can't find info about this.

            It seems that you have a reference between two beans and you must have <ejb-link> tag in your reference mapping. Here is an example of a reference mapping (ejb-jar.xml):

            <ejb-local-ref>
            <ejb-ref-name>Data</ejb-ref-name>
            <ejb-ref-type>Entity</ejb-ref-type>
            <local-home>BeanLocalHome</local-home>
            BeanLocal
            <ejb-link>Bean</ejb-link></ejb-local-ref>

            Regards.

            • 3. Re: Local references currently require ejb-link
              icordoba

              Thanks a lot for your reply tdang,
              do you (anybody) know if this ejb-link tag in ejb-jar.xml is something special for jboss or standard in the J2EE specs?
              I've checked that my J2EE IDE (Pramati Studio) generates ejb-jar files without that tag.

              Thanks,
              Ignacio

              • 4. Re: Local references currently require ejb-link
                tdang

                it specifies which bean class is to be referenced, it is not enough to have only its (local) home and remote/local interface.

                Hope it helps.

                • 5. Re: Local references currently require ejb-link

                  ejb-link is part of the ejb-jar.dtd