2 Replies Latest reply on Jan 8, 2004 2:42 PM by lucifer_smiles

    EJB class generation problem..

    lucifer_smiles

      hey all,
      i am going through the tutorial on Jboss/eclipse on tusc website, and in chapter 3 we have to generate EJB classes, by adding code snippet to Bean class. the tutorial says StoreAccessDAO.java shud be generated in ejbsrc/au.com.tusc.session package. but when i create classes, StoreAccessDAO.java is created in MyStoreMgr/META-INF/ejbsrc/au/com/tusc/session/StoreAccessDAO.java.

      why is this happening?
      in bean class, the code for xdoclet generation is
      Code:

      * @ejb.dao class="au.com.tusc.session.StoreAccessDAO"
      * impl-class="au.com.tusc.StoreAccessDAOImpl"



      and in xdoclet.xml i have specified
      Code:

      // i have left out the exact syntax
      < dao pattern="{0}" destDir= ejbsrc.dir >



      could come one pls throw light on this?

      thank you
      luci..

        • 1. Re: EJB class generation problem..update
          lucifer_smiles

          hey all..
          i was able to solve the problem..i don't know whether its right solution.

          this was the original tag i was using..

          // i have left out the exact syntax
          <dao pattern="{0}" destDir= ejbsrc.dir >
          
          i changed it to
          
          <dao pattern="{0}" >
          
          


          this generates the files in correct folder. i am wondering abt my xdoclet generation engine..it doesn't generate files properly. further in the tutorial where i have to add the tag
          @dao.call = "loginUser"

          and this tag is supposed to generated methods in interface files. this doesn't happen.

          could some one point out whats happening or give me the link to post this to correct forum..

          thanx
          luci..

          • 2. Re: EJB class generation problem..
            lucifer_smiles

            hey all..
            finally figured it out..i didn't know that xdoclet is very finicky abt the order of tags and methods. so that was basically the problem..



            luci..