2 Replies Latest reply on Aug 20, 2004 6:10 AM by Adrian

    wrong local-jndi tags in jboss.xml using Eclipse+Lomboz

    Adrian Newbie

      I still have the very old problem that the EJB tags for the local jndi names are not correctly generated (JBOSS.XML will be overwrite with wrong entries).

      Is anyone outthere that have solved this problem ?

      copy/paste each time when the EJB classes are generated
      is not very funny ...

        • 1. Re: wrong local-jndi tags in jboss.xml using Eclipse+Lomboz
          Darran Lofthouse Master

          Your post makes no sense, can you describe what you are doing fully.

          • 2. Re: wrong local-jndi tags in jboss.xml using Eclipse+Lomboz
            Adrian Newbie

            I have a session bean that use local home interfaces of a few entity beans. I'm using Eclipse 3.0 with Lomboz and XDoclet to generate the EJB classes and the deployment descriptors. The session bean contains a sequence like

            * @ejb.ejb-external-ref
            * ref-name="ejb/TaskLocal"
            * type="Entity"
            * view-type="local"
            * home="promis.dm.ca.TaskLocalHome"
            * business="promis.dm.ca.TaskLocal"
            ..............................
            * @jboss.ejb-ref-jndi
            * ref-name="TaskLocal"
            * jndi-name="TaskLocal"

            Therefor generate Lomboz the next (wrong) code in jboss.xml:

            .......................................

            <ejb-name>SessionAgent</ejb-name>
            <jndi-name>SessionAgentBean</jndi-name>
            <local-jndi-name>SessionAgentLocal</local-jndi-name>

            <ejb-ref>
            <ejb-ref-name>ejb/TaskLocal</ejb-ref-name>
            <jndi-name>TaskLocal</jndi-name>
            </ejb-ref>
            .......................................

            instead of


            <ejb-name>SessionAgent</ejb-name>
            <jndi-name>SessionAgentBean</jndi-name>
            <local-jndi-name>SessionAgentLocal</local-jndi-name>

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

            Here I'm copying/pasting every time after genertaing the EJB classes
            the right text into the jboss.xml file.

            I have updated Lomboz according to the article http://www.amitysolutions.com.au/documents/XDocletChange-technote.pdf, but nothing changes.