3 Replies Latest reply on Jul 20, 2005 2:00 AM by vashistvishal

    How to configure LocalEJB via XDoclet

    jbosser2005

      I have a Servlet which uses a LocalEJB Address. For the web.xml I configured this EJB like

      * @web.ejb-local-ref name="ejb/Adress"
      * type="Entity"
      * home="de.aukt.interfaces.AdressLocalHome"
      * local="de.aukt.interfaces.AdressLocal"
      *

      and for JBoss

      * @jboss.ejb-local-ref ref-name="ejb/Adress"
      * jndi-name="ejb/Adress"

      However, in the jboss-web.xml the EJB Local Reference is missing. I do not know what is wrong here. How to configure a LocalEJB via XDoclet tags?

      Thx,
      Sven

        • 1. Re: How to configure LocalEJB via XDoclet
          jbosser2005

          I still have no clue why the following xml tags

          <ejb-local-ref>
          <ejb-ref-name>ejb/AdresseLocal</ejb-ref-name>
          <local-jndi-name>ejb/AdresseLocal</local-jndi-name>
          </ejb-local-ref>


          are not generated automatically for jboss.web.xml.

          In my Servlet I set up these XDoclet tags:

          **
          * Servlet Class
          *
          * @web.servlet name="Kundendaten"
          * display-name="Kundendaten"
          * description="Description for Kundendaten"
          *
          * @web.servlet-mapping url-pattern="/Kundendaten"
          *
          * @web.ejb-ref name="ejb/Kunde"
          * type="Entity"
          * home="de.aukt.interfaces.KundeHome"
          * remote="de.aukt.interfaces.Kunde"
          * description="Reference to the Kunde EJB"
          *
          * @web.ejb-ref name="ejb/Adresse"
          * type="Entity"
          * home="de.aukt.interfaces.AdresseHome"
          * remote="de.aukt.interfaces.Adresse"
          *
          *
          * @web.ejb-local-ref name="ejb/AdresseLocal"
          * type="Entity"
          * home="de.aukt.interfaces.AdresseLocalHome"
          * local="de.aukt.interfaces.AdresseLocal"
          *
          * @jboss.ejb-ref-jndi ref-name="ejb/Kunde"
          * jndi-name="ejb/Kunde"
          *
          * @jboss.ejb-ref-jndi ref-name="ejb/Adresse"
          * jndi-name="ejb/Adresse"
          *
          * @jboss.ejb-local-ref ref-name="ejb/AdresseLocal"
          * jndi-name="ejb/AdresseLocal"


          But the <ejb-local-ref> is never put into jboss.web.xml... Is this probably a bug of XDoclet or do I misconfigure something here?

          Sven

          • 2. Re: How to configure LocalEJB via XDoclet
            anthropophagos

            Hi!
            I have the same problem. I read some other forum posts, and it seems to be a xdoclet error. I am curious if there is a fix to this.
            Anyone can help?

            AP

            • 3. Re: How to configure LocalEJB via XDoclet

              Yr detailed answer lies here.
              http://www.amitysolutions.com.au/documents/XDocletChange-technote.pdf
              This has been answered before on the mailing list.